What does Windows error code 1078 (ERROR_DUPLICATE_SERVICE_NAME) mean?

 
Previous Next
ERROR_SERVICE_NEVER_STARTED ERROR_DIFFERENT_SERVICE_ACCOUNT

ERROR_DUPLICATE_SERVICE_NAME

ERROR_DUPLICATE_SERVICE_NAME (1078, 0x00000436) means that the chosen display name conflicts with an existing service name or display name in the Service Control Manager database.

Why it can be surprising

CreateService keeps the service name and display name as separate values, but both occupy a shared namespace for this validation. The comparison is case-insensitive, so changing only letter case does not make a conflicting name valid.

How to distinguish related errors

ERROR_SERVICE_EXISTS means that the internal service name already exists. ERROR_DUPLICATE_SERVICE_NAME can also occur when the internal name is new but the selected display name collides with an existing service or display name.

Choose a distinct, stable internal name for programmatic use and a separate user-facing display name. During upgrades, query the existing service first instead of creating a second record with the same identity.


Looking for a different code? Search another status or error code.