Updates the service control manager's status information for the service.
SvcSetState(state)
(i) state can be one of the following service states:
Value |
Service state |
Meaning |
1 |
SERVICE_STOPPED |
The service is not running |
2 |
SERVICE_START_PENDING |
The service is starting. |
3 |
SERVICE_STOP_PENDING |
The service is stopping |
4 |
SERVICE_RUNNING |
The service is running |
5 |
SERVICE_CONTINUE_PENDING |
The service continue is pending |
6 |
SERVICE_PAUSE_PENDING |
The service pause is pending |
7 |
SERVICE_PAUSED |
The service is paused |
(i) previous value the previous value for "state", or -1 if not running as a service.