| Previous | Next |
| ERROR_SERVICE_DOES_NOT_EXIST | ERROR_SERVICE_NOT_ACTIVE |
ERROR_SERVICE_CANNOT_ACCEPT_CTRL
ERROR_SERVICE_CANNOT_ACCEPT_CTRL (1061, 0x00000425) means that a control request such as stop, pause or continue was sent while the service was in a state that cannot receive it.
State matters
ControlService reports this code when the service is stopped, starting or stopping. A pending transition is not the same as a running service that has declined a particular control: that latter case is normally ERROR_INVALID_SERVICE_CONTROL.
How to handle it
Query the service state with QueryServiceStatusEx, then wait for the pending transition to complete before sending another request. After a stop request, do not send further controls until the service has reached a stable state.
For service authors, report SERVICE_START_PENDING or SERVICE_STOP_PENDING with meaningful checkpoints and wait hints, then update the status when the state changes.
Looking for a different code? Search another status or error code.
