Board index » cppbuilder » Closing services

Closing services


2005-05-15 02:59:39 AM
cppbuilder64
Hi,
I want my cpp program to close down a certain service. I know the name
of the service, but no more. how do I do this?
Malcolm
 
 

Re:Closing services

Look at the API ControlService() from BCB Win32 Help. To use it
you'll need also to look API OpenService().
Finally look at API CloseServiceHandle (), StartService()...
Using it is easy.
--
Best regards,
Vladimir Stefanovic
"Malcolm VanOrder" < XXXX@XXXXX.COM >wrote in message
Quote
Hi,

I want my cpp program to close down a certain service. I know the name of
the service, but no more. how do I do this?

Malcolm