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/11/13 20:05,
3.94.202.151: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://www.piclist.com/techref/os/win/api/win32/struc/src/str18_20.htm"> SERVICE_STATUS</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.