Service |
Member name | Value | Description |
---|---|---|
Stop | 1 | Notifies a service that it should stop. The serviceHandle handle must have the access right. After sending the stop request to a service, you should not send other controls to the service. |
Pause | 2 | Notifies a service that it should pause. The serviceHandle handle must have the access right. |
Continue | 3 | Notifies a paused service that it should resume. The serviceHandle handle must have the access right. |
Interrogate | 4 | Notifies a service that it should report its current status information to the service control manager. The serviceHandle handle must have the access right. |
Shutdown | 5 | Notifies a service that the system is shutting down so the service can perform cleanup tasks. Note that services that register for notifications cannot receive this notification because they have already stopped. |
ParamChange | 6 | Notifies a service that its startup parameters have changed. The serviceHandle handle must have the access right. |
NetbindAdd | 7 | Notifies a network service that there is a new component for binding. The serviceHandle handle must have the access right. However, this control code has been deprecated; use Plug and Play functionality instead. |
NetbindRemove | 8 | Notifies a network service that a component for binding has been removed. The serviceHandle handle must have the access right. However, this control code has been deprecated; use Plug and Play functionality instead. |
NetbindEnable | 9 | Notifies a network service that a disabled binding has been enabled. The serviceHandle handle must have the access right. However, this control code has been deprecated; use Plug and Play functionality instead. |
NetbindDisable | 10 | Notifies a network service that one of its bindings has been disabled. The serviceHandle handle must have the access right. However, this control code has been deprecated; use Plug and Play functionality instead. |
DeviceEvent | 11 | Notifies a service of device events. (The service must have registered to receive these notifications using the RegisterDeviceNotification function.) The eventType and eventData parameters contain additional information. |
HardwareProfileChange | 12 | Notifies a service that the computer's hardware profile has changed. The eventType parameter contains additional information. |
PowerEvent | 13 | Notifies a service of system power events. The eventType parameter contains additional information. If eventType is PBT_POWERSETTINGCHANGE, the eventData parameter also contains additional information. |
SessionChange | 14 | Notifies a service of session change events. Note that a service will only be notified of a user logon if it is fully loaded before the logon attempt is made. The eventType and eventData parameters contain additional information. |
Preshutdown | 15 | The service control preshutdown |
TimeChange | 16 | Notifies a service that the system time has changed. The eventData parameter contains additional information. The eventType parameter is not used. |
TriggerEvent | 32 | Notifies a service registered for a service trigger event that the event has occurred. |
UserModeReboot | 64 | Notifies a service that the user has initiated a reboot. |