Re: Stop a service programatically



If I understand you correctly, you should just be able to use a
ServiceController to stop it programatically. Here's a walk through
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskperformingadministrativetasksonservices.asp
"UJ" <fred@xxxxxxxxxxx> wrote in message
news:u9IfIP$0FHA.700@xxxxxxxxxxxxxxxxxxxxxxx
>I have code to start up a service and delete (uninstall) a service. I'm
>looking for help on stopping a service. I've noticed that if a service is
>running and you delete it, it still is running but has been marked as
>disabled. As soon as you stop it, it disappears from the list of services.
>
> Any thoughts/help?
>
> TIA - Jeff.
>
>


.



Relevant Pages