Creating a stoppable service
Posted on 1998-06-30
I've tried to create a service on a NT4.0W using the sc.exe included in the resource kit. The service is created without problems and so is the start. However, when I try to stop the service NT responds that this action is not allowed. I have done a SC query on the service and it tells that the state of the service is started, NON-STOPPABLE, NON-PAUSABLE and IGNORES-SHUTDOWN.
I'd like to change this state to STOPPABLE, PAUSABLE and not to ignore shutdowns.
How can this be done?
Btw, I've tried the same using the SRVINSTW.EXE file with the same results.