Stop a service programatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • UJ

    Stop a service programatically

    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.


  • W.G. Ryan - MVP

    #2
    Re: Stop a service programatically

    If I understand you correctly, you should just be able to use a
    ServiceControll er to stop it programatically . Here's a walk through

    "UJ" <fred@nowhere.c om> wrote in message
    news:u9IfIP$0FH A.700@TK2MSFTNG P10.phx.gbl...[color=blue]
    >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.
    >
    >[/color]


    Comment

    Working...