p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

pro_vb thread: Re : Shutting Down Services

Message #1 by "Nicholas Fantano" <n.fantano@s...> on Fri, 13 Apr 2001 03:03:52
I am attempting to shutdown a service through an API call in NT 4.0 with 
service pack 4.0. I have a handle on the service manager using the 
function OpenSCService and a handle on the application using the 
OpenService(hSCM, lpServiceName, etc). The next part is what I cannot seem 
to pick-upp the syntax for. I havetried using the ControlService(hSVC, 
SERVICE_STOP, STATUS) but this does not shut down the service. I have also 

Beginning to wonder if this can only be accomplished in VC++!

  Return to Index