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. |
相关文章
php win32service 函数 resumes a paused servicephp win32service 函数 creates a new service entry in the scm databasephp win32service 函数 deletes a service entry from the scm databasephp win32service 函数 returns the last control message that was sent to this servicephp win32service 函数 send a custom control to the servicephp win32service 函数 stops a servicephp win32service 简介php win32ps 预定义常量php 预定义常量 win32 base priority classesphp 预定义常量 win32service service control message accepted bitmasksphp 预定义常量 win32service service error control constantsphp 预定义常量 win32 error codesphp win32service 预定义常量php 预定义常量 win32 recovery actionphp 预定义常量 win32service service control message constantsphp 预定义常量 win32service service flag constantsphp 预定义常量 win32 service informationsphp 预定义常量 win32service service start type constantsphp 预定义常量 win32service service status constantsphp 预定义常量 win32service service type bitmasks
关注编程学问公众号