PHP - Manual: Win32Service Service Control Message Accepted Bitmasks
2024-11-14
Constant | Value | Description |
---|---|---|
WIN32_SERVICE_ACCEPT_HARDWAREPROFILECHANGE |
0x00000020 |
The service is notified when the computer's hardware profile has changed.
This enables the system to send
WIN32_SERVICE_CONTROL_HARDWAREPROFILECHANGE
notifications to the service.
|
WIN32_SERVICE_ACCEPT_NETBINDCHANGE |
0x00000010 |
The service is a network component that can accept changes in its
binding without being stopped and restarted.
This control code allows the service to receive
WIN32_SERVICE_CONTROL_NETBINDADD ,
WIN32_SERVICE_CONTROL_NETBINDREMOVE ,
WIN32_SERVICE_CONTROL_NETBINDENABLE , and
WIN32_SERVICE_CONTROL_NETBINDDISABLE notifications.
|
WIN32_SERVICE_ACCEPT_PARAMCHANGE |
0x00000008 |
The service can reread its startup parameters without being stopped and restarted.
This control code allows the service to receive
WIN32_SERVICE_CONTROL_PARAMCHANGE notifications.
|
WIN32_SERVICE_ACCEPT_PAUSE_CONTINUE |
0x00000002 |
The service can be paused and continued. This control code allows the
service to receive WIN32_SERVICE_CONTROL_PAUSE and
WIN32_SERVICE_CONTROL_CONTINUE notifications.
|
WIN32_SERVICE_ACCEPT_POWEREVENT |
0x00000040 |
The service is notified when the computer's power status has changed.
This enables the system to send
WIN32_SERVICE_CONTROL_POWEREVENT notifications
to the service.
|
WIN32_SERVICE_ACCEPT_PRESHUTDOWN |
0x00000100 |
The service can perform preshutdown tasks. This control code enables the
service to receive WIN32_SERVICE_CONTROL_PRESHUTDOWN
notifications. This value is not supported by Windows Server 2003 and
Windows XP/2000.
|
WIN32_SERVICE_ACCEPT_SESSIONCHANGE |
0x00000080 |
The service is notified when the computer's session status has changed.
This enables the system to send
WIN32_SERVICE_CONTROL_SESSIONCHANGE notifications
to the service.
Windows 2000: This value is not supported
|
WIN32_SERVICE_ACCEPT_SHUTDOWN |
0x00000004 |
The service is notified when system shutdown occurs. This control code
allows the service to receive WIN32_SERVICE_CONTROL_SHUTDOWN
notifications.
|
WIN32_SERVICE_ACCEPT_STOP |
0x00000001 |
The service can be stopped. This control code allows the service to
receive WIN32_SERVICE_CONTROL_STOP notifications.
|
WIN32_SERVICE_ACCEPT_TIMECHANGE |
0x00000200 |
The service is notified when the system time has changed.
This enables the system to send
WIN32_SERVICE_CONTROL_TIMECHANGE notifications to the service.
Windows Server 2008, Windows Vista, Windows Server 2003,
and Windows XP/2000: This control code is not supported.
|
WIN32_SERVICE_ACCEPT_TRIGGEREVENT |
0x00000400 |
The service is notified when an event for which the service has registered occurs.
This enables the system to send
WIN32_SERVICE_CONTROL_TRIGGEREVENT notifications to the service.
Windows Server 2008, Windows Vista, Windows Server 2003,
and Windows XP/2000: This control code is not supported.
|
官方地址:https://www.php.net/manual/en/win32service.constants.controlsaccepted.php