cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
3X-Man
Level 6

How to stop a service programatically with Win32service?

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.
Labels (1)
0 Kudos
1 Reply
RobertDickau
Flexera Alumni

Perhaps use SERVICE_CONTROL_STOP with the controlNTService method?
0 Kudos