Click or drag to resize
Xcalibur Systems LLC Logo

ServiceCommands Enumeration

Service control codes.

HandlerEx callback function


Namespace: Xcalibur.NativeMethods.V2.Services
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[FlagsAttribute]
public enum ServiceCommands
Members
Member nameValueDescription
Stop1 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.
Pause2 Notifies a service that it should pause. The serviceHandle handle must have the access right.
Continue3 Notifies a paused service that it should resume. The serviceHandle handle must have the access right.
Interrogate4 Notifies a service that it should report its current status information to the service control manager. The serviceHandle handle must have the access right.
Shutdown5 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.
ParamChange6 Notifies a service that its startup parameters have changed. The serviceHandle handle must have the access right.
NetbindAdd7 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.
NetbindRemove8 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.
NetbindEnable9 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.
NetbindDisable10 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.
DeviceEvent11 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.
HardwareProfileChange12 Notifies a service that the computer's hardware profile has changed. The eventType parameter contains additional information.
PowerEvent13 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.
SessionChange14 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.
Preshutdown15 The service control preshutdown
TimeChange16 Notifies a service that the system time has changed. The eventData parameter contains additional information. The eventType parameter is not used.
TriggerEvent32 Notifies a service registered for a service trigger event that the event has occurred.
UserModeReboot64 Notifies a service that the user has initiated a reboot.
See Also