StartMode Property (SqlService Class)
Gets the start mode of the service.
object.StartMode [= value]
A SqlService Class object that represents the service.
Property Value/Return Value
A uint32 value that specifies the mode of the service.
Values can be one of the following.
Value = 0. Service started by the operating system loader. This option is valid only for driver services.
Value = 1. Service started by the IoInitSystem method. This option is valid only for driver services.
Value = 2. Service to be started automatically by the service control manager during system startup.
Value = 3. Service to be started by the Computer Manager when a process calls the StartService method.
Value = 4. Service cannot be started.