CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 1999
    Location
    Colombo, Sri Lanka
    Posts
    27

    Stopping a NT Service.. Is it possible?

    Hi,

    Does anyone know how to stop an NT Service through VB?

    Thanks,

    Rob.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Stopping a NT Service.. Is it possible?

    you should be able to do that using the following apis:
    openservice
    ControlService, passing SERVICE_CONTROL_STOP as dwControl argument.


  3. #3
    Guest

    Re: Stopping a NT Service.. Is it possible?


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