Module: Windows::ServiceConstants
- Included in:
- Win32::Daemon, Win32::Service
- Defined in:
- lib/win32/windows/constants.rb
Constant Summary collapse
- SC_MANAGER_ALL_ACCESS =
0xF003F
- SC_MANAGER_CREATE_SERVICE =
0x0002
- SC_MANAGER_CONNECT =
0x0001
- SC_MANAGER_ENUMERATE_SERVICE =
0x0004
- SC_MANAGER_LOCK =
0x0008
- SC_MANAGER_MODIFY_BOOT_CONFIG =
0x0020
- SC_MANAGER_QUERY_LOCK_STATUS =
0x0010
- SC_STATUS_PROCESS_INFO =
0
- SC_ENUM_PROCESS_INFO =
0
- SC_ACTION_NONE =
Service control action types
0
- SC_ACTION_RESTART =
1
- SC_ACTION_REBOOT =
2
- SC_ACTION_RUN_COMMAND =
3
- SERVICE_ALL_ACCESS =
Service access rights
0xF01FF
- SERVICE_CHANGE_CONFIG =
0x0002
- SERVICE_ENUMERATE_DEPENDENTS =
0x0008
- SERVICE_INTERROGATE =
0x0080
- SERVICE_PAUSE_CONTINUE =
0x0040
- SERVICE_QUERY_CONFIG =
0x0001
- SERVICE_QUERY_STATUS =
0x0004
- SERVICE_START =
0x0010
- SERVICE_STOP =
0x0020
- SERVICE_USER_DEFINED_CONTROL =
0x0100
- SERVICE_KERNEL_DRIVER =
Service types
0x00000001
- SERVICE_FILE_SYSTEM_DRIVER =
0x00000002
- SERVICE_ADAPTER =
0x00000004
- SERVICE_RECOGNIZER_DRIVER =
0x00000008
- SERVICE_WIN32_OWN_PROCESS =
0x00000010
- SERVICE_WIN32_SHARE_PROCESS =
0x00000020
- SERVICE_WIN32 =
0x00000030
- SERVICE_INTERACTIVE_PROCESS =
0x00000100
- SERVICE_DRIVER =
0x0000000B
- SERVICE_TYPE_ALL =
0x0000013F
- SERVICE_ERROR_IGNORE =
Error control
0x00000000
- SERVICE_ERROR_NORMAL =
0x00000001
- SERVICE_ERROR_SEVERE =
0x00000002
- SERVICE_ERROR_CRITICAL =
0x00000003
- SERVICE_BOOT_START =
Start types
0x00000000
- SERVICE_SYSTEM_START =
0x00000001
- SERVICE_AUTO_START =
0x00000002
- SERVICE_DEMAND_START =
0x00000003
- SERVICE_DISABLED =
0x00000004
- SERVICE_CONTROL_STOP =
Service control
0x00000001
- SERVICE_CONTROL_PAUSE =
0x00000002
- SERVICE_CONTROL_CONTINUE =
0x00000003
- SERVICE_CONTROL_INTERROGATE =
0x00000004
- SERVICE_CONTROL_SHUTDOWN =
0x00000005
- SERVICE_CONTROL_PARAMCHANGE =
0x00000006
- SERVICE_CONTROL_NETBINDADD =
0x00000007
- SERVICE_CONTROL_NETBINDREMOVE =
0x00000008
- SERVICE_CONTROL_NETBINDENABLE =
0x00000009
- SERVICE_CONTROL_NETBINDDISABLE =
0x0000000A
- SERVICE_CONTROL_DEVICEEVENT =
0x0000000B
- SERVICE_CONTROL_HARDWAREPROFILECHANGE =
0x0000000C
- SERVICE_CONTROL_POWEREVENT =
0x0000000D
- SERVICE_CONTROL_SESSIONCHANGE =
0x0000000E
- SERVICE_CONTROL_PRESHUTDOWN =
0x0000000F
- SERVICE_CONTROL_TIMECHANGE =
0x00000010
- SERVICE_CONTROL_TRIGGEREVENT =
0x00000020
- SERVICE_ACCEPT_STOP =
Service controls accepted
0x00000001
- SERVICE_ACCEPT_PAUSE_CONTINUE =
0x00000002
- SERVICE_ACCEPT_SHUTDOWN =
0x00000004
- SERVICE_ACCEPT_PARAMCHANGE =
0x00000008
- SERVICE_ACCEPT_NETBINDCHANGE =
0x00000010
- SERVICE_ACCEPT_HARDWAREPROFILECHANGE =
0x00000020
- SERVICE_ACCEPT_POWEREVENT =
0x00000040
- SERVICE_ACCEPT_SESSIONCHANGE =
0x00000080
- SERVICE_ACCEPT_PRESHUTDOWN =
0x00000100
- SERVICE_ACCEPT_TIMECHANGE =
0x00000200
- SERVICE_ACCEPT_TRIGGEREVENT =
0x00000400
- SERVICE_ACTIVE =
Service states
0x00000001
- SERVICE_INACTIVE =
0x00000002
- SERVICE_STATE_ALL =
0x00000003
- SERVICE_STOPPED =
Service current states
0x00000001
- SERVICE_START_PENDING =
0x00000002
- SERVICE_STOP_PENDING =
0x00000003
- SERVICE_RUNNING =
0x00000004
- SERVICE_CONTINUE_PENDING =
0x00000005
- SERVICE_PAUSE_PENDING =
0x00000006
- SERVICE_PAUSED =
0x00000007
- SERVICE_CONFIG_DESCRIPTION =
Info levels
1
- SERVICE_CONFIG_FAILURE_ACTIONS =
2
- SERVICE_CONFIG_DELAYED_AUTO_START_INFO =
3
- SERVICE_CONFIG_FAILURE_ACTIONS_FLAG =
4
- SERVICE_CONFIG_SERVICE_SID_INFO =
5
- SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO =
6
- SERVICE_CONFIG_PRESHUTDOWN_INFO =
7
- SERVICE_NO_CHANGE =
Configuration
0xffffffff
- WAIT_OBJECT_0 =
Misc
0
- WAIT_TIMEOUT =
0x00000102
- INFINITE =
0xFFFFFFFF
- IDLE_CONTROL_CODE =
0
- DELETE =
0x00010000
- FORMAT_MESSAGE_FROM_SYSTEM =
0x00001000
- FORMAT_MESSAGE_IGNORE_INSERTS =
0x00000200
- NO_ERROR =
0
- SE_PRIVILEGE_ENABLED =
0x00000002
- TOKEN_ADJUST_PRIVILEGES =
0x0020
- TOKEN_QUERY =
0x0008
- ERROR_INSUFFICIENT_BUFFER =
Errors
122
- ERROR_MORE_DATA =
234
- ERROR_FILE_NOT_FOUND =
2
- ERROR_RESOURCE_TYPE_NOT_FOUND =
1813
- ERROR_RESOURCE_NAME_NOT_FOUND =
1814
- WAIT_FAILED =
0xFFFFFFFF