dwServiceType: A value that specifies the type of service. This MUST be one or a combination of the following values. Value Meaning SERVICE_KERNEL_DRIVER A driver service. These are services that manage devices on the system. 0x00000001 SERVICE_FILE_SYSTEM_DRIVER A file system driver service. These are services that manage file systems on the system. 0x00000002 SERVICE_WIN32_OWN_PROCESS Service that runs in its own process. 0x00000010 SERVICE_WIN32_SHARE_PROCESS Service that shares a process with other services. 0x00000020 SERVICE_INTERACTIVE_PROCESS The service can interact with the desktop. 0x00000100 dwStartType: A value that specifies when to start the service. This MUST be one of the following values. Value Meaning SERVICE_BOOT_START Starts the driver service when the system up. This value is valid only for driver services. 0x00000000 SERVICE_SYSTEM_START Starts the driver service when the system boots up. This value is valid only for driver services. The services marked SERVICE_SYSTEM_START are started after 0x00000001 all SERVICE_BOOT_START services have been started. SERVICE_AUTO_START Starts the service automatically during system startup. 0x00000002 SERVICE_DEMAND_START Starts the service when a client requests the SCM to start the service. 0x00000003 SERVICE_DISABLED Service cannot be started. 0x00000004 dwErrorControl: A value that specifies the severity of the error if the service fails to start and determines the action that the SCM takes. This MUST be one of the following values. Value Meaning SERVICE_ERROR_IGNORE The SCM ignores the and continues the startup operation. 0x00000000 SERVICE_ERROR_NORMAL The SCM logs the error, but continues the startup operation. 0x00000001 SERVICE_ERROR_SEVERE The SCM logs the If the last-known good configuration is being started, the startup operation continues. Otherwise, the system is restarted with the 0x00000002 last-known good configuration.
dwServiceType: A value that specifies the type of service. This MUST be one or a combination of the following values. Value Meaning SERVICE_KERNEL_DRIVER 0x00000001 A driver service. These are services that manage devices on the system. SERVICE_FILE_SYSTEM_DRIVER 0x00000002 A file system driver service. These are services that manage file systems on the system. SERVICE_WIN32_OWN_PROCESS 0x00000010 Service that runs in its own process. SERVICE_WIN32_SHARE_PROCESS 0x00000020 Service that shares a process with other services. SERVICE_INTERACTIVE_PROCESS 0x00000100 The service can interact with the desktop. dwStartType: A value that specifies when to start the service. This MUST be one of the following values. Value Meaning SERVICE_BOOT_START 0x00000000 Starts the driver service when the system up. This value is valid only for driver services. SERVICE_SYSTEM_START 0x00000001 Starts the driver service when the system boots up. This value is valid only for driver services. The services marked SERVICE_SYSTEM_START are started after all SERVICE_BOOT_START services have been started. SERVICE_AUTO_START 0x00000002 Starts the service automatically during system startup. SERVICE_DEMAND_START 0x00000003 Starts the service when a client requests the SCM to start the service. SERVICE_DISABLED 0x00000004 Service cannot be started. dwErrorControl: A value that specifies the severity of the error if the service fails to start and determines the action that the SCM takes. This MUST be one of the following values. Value Meaning SERVICE_ERROR_IGNORE 0x00000000 The SCM ignores the and continues the startup operation. SERVICE_ERROR_NORMAL 0x00000001 The SCM logs the error, but continues the startup operation. SERVICE_ERROR_SEVERE 0x00000002 The SCM logs the If the last-known good configuration is being started, the startup operation continues. Otherwise, the system is restarted with the last-known good configuration.