CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Posts
    16

    Stopping Services

    Hi,

    I am trying to stop some of the Windows NT Services running on the local server from my VB application using the following command.

    lRetVal = WinExec("NET STOP MyService", 0)

    But "MyService" is a Windows NT service which has "MyOtherService" as a dependant service. Since "MyOtherService" is still running, I am not able to stop "MyService". Well I could resolve this by first stopping "MyOtherService" and then stopping "MyService". But, I do not know at this point which are the other services that are dependent on "MyService". Hence the request for expert opinion.

    Thanks,
    Ashley



  2. #2
    Join Date
    Mar 2001
    Posts
    24

    Re: Stopping Services

    Hi,
    actually i wants to start/stop a service using VB application so can u plz tell me how to do that.
    Expecting detailed soln as i m beginner
    rgds

    :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured