The SERVICE_STATUS structure contains information about a service. The ControlService, EnumDependentServices, EnumServicesStatus, and QueryServiceStatus functions use this structure to return information about a service. A service uses this structure in the SetServiceStatus function to report its current status to the service control manager.
typedef struct _SERVICE_STATUS { // ss DWORD dwServiceType; DWORD dwCurrentState; DWORD dwControlsAccepted; DWORD dwWin32ExitCode; DWORD dwServiceSpecificExitCode; DWORD dwCheckPoint; DWORD dwWaitHint; } SERVICE_STATUS, *LPSERVICE_STATUS;
Value |
Meaning |
SERVICE_WIN32_OWN_PROCESS |
A service type flag that indicates a Win32 service that runs in its own process. |
SERVICE_WIN32_SHARE_PROCESS |
A service type flag that indicates a Win32 service that shares a process with other services. |
SERVICE_KERNEL_DRIVER |
A service type flag that indicates a Windows NT device driver. |
SERVICE_FILE_SYSTEM_DRIVER |
A service type flag that indicates a Windows NT file system driver. |
SERVICE_INTERACTIVE_PROCESS |
A flag that indicates a Win32 service process that can interact with the desktop. |
Value |
Meaning |
SERVICE_STOPPED |
The service is not running. |
SERVICE_START_PENDING |
The service is starting. |
SERVICE_STOP_PENDING |
The service is stopping. |
SERVICE_RUNNING |
The service is running. |
SERVICE_CONTINUE_PENDING |
The service continue is pending. |
SERVICE_PAUSE_PENDING |
The service pause is pending. |
SERVICE_PAUSED |
The service is paused. |
Value |
Meaning |
SERVICE_ACCEPT_STOP | |
The service can be stopped. This enables the SERVICE_CONTROL_STOP value. | |
SERVICE_ACCEPT_PAUSE_CONTINUE | |
The service can be paused and continued. This enables the SERVICE_CONTROL_PAUSE and SERVICE_CONTROL_CONTINUE values. | |
SERVICE_ACCEPT_SHUTDOWN | |
The service is notified when system shutdown occurs. This enables the system to send a SERVICE_CONTROL_SHUTDOWN value to the service. The ControlService function cannot send this control code. |
ControlService, EnumDependentServices, EnumServicesStatus, QueryServiceStatus, SetServiceStatus
file: /Techref/os/win/api/win32/struc/src/str18_20.htm, 9KB, , updated: 2000/4/7 11:20, local time: 2024/12/28 19:45,
3.133.143.118:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/os/win/api/win32/struc/src/str18_20.htm"> SERVICE_STATUS</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.