The service information is kept in the registry at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
Each service and driver is listed under its own key.
Service startup types are saved in the registry value (DWORD) Start under the corresponding service name. This value can be set to any of the following:
START TYPE LOADER MEANING
0x0 Kernel Represents a part of the
(Boot) driver stack for the boot
(startup) volume and must
therefore be loaded by the
Boot Loader.
0x1 I/O Represents a driver to be loaded
(System) subsystem at Kernel initialization.
0x2 Service To be loaded or started
(Auto load) Control automatically for all startups,
Manager regardless of service type.
0x3 Service Available, regardless of type,
(Load on Control but will not be started until
demand) Manager the user starts it (for example,
by using the Devices icon in
Control Panel).
0x4 Service NOT TO BE STARTED UNDER ANY
(disabled) Control CONDITIONS.
Manager
Note that Boot (0) and System (1) are reserved for device drivers. Regular services should not be set to these start types.
Service type is saved in the registry value (DWORD) Type under the corresponding service name. This value can be set to any of the following:
Service Type Description
0x1 A Kernel device driver.
0x2 File system driver, which is also
a Kernel device driver.
0x4 A set of arguments for an adapter.
0x10 A Win32 program that can be started
by the Service Controller and that
obeys the service control protocol.
This type of Win32 service runs in
a process by itself.
0x20 A Win32 service that can share a process
with other Win32 services.