https://serverfault.com/questions/70028/pausing-a-not-pausable-service-pausing-a-not-pausable-service-from-the-command talks about pausing a NOT_PAUSABLE service. How do I indicate my service is not pausable to begin with? I want my service to only support the start/stop operations.
When you create your service, you filled out a SERVICE_STATUS
structure. One of the fields in the structure is called dwControlsAccepted
. One of the options for dwControlsAccepted
is SERVICE_ACCEPT_PAUSE_CONTINUE
. If you don't say you support pause/continue, then it will be reported by SCM as not supporting pause/continue.