PDA

View Full Version : How to stop a service programatically with Win32service?



3X-Man
09-23-2009, 05:42 AM
Hi,

I was wondering if I was not blind.
In the API of Win32Service, there is a startNTService but no stopNTService.

How can I stop a service with the API?

Thanks,

X.

RobertDickau
09-23-2009, 09:45 AM
Perhaps use SERVICE_CONTROL_STOP with the controlNTService method?