Re: Stop a service programatically
- From: "W.G. Ryan - MVP" <WilliamRyan@xxxxxxxxxxxxxxxx>
- Date: Tue, 18 Oct 2005 11:20:29 -0400
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.
>
>
.
- References:
- Stop a service programatically
- From: UJ
- Stop a service programatically
- Prev by Date: Re: How to re-populate a Data Grid?
- Next by Date: Re: System.Windows. Not valaible
- Previous by thread: Stop a service programatically
- Next by thread: Re: How to re-populate a Data Grid?
- Index(es):
Relevant Pages
|