Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

How do I shut down NT an NT service

How can I shut down an NT service.  
I can identify the services running on an NT box.  I need to shut one down - do a few things - And then bring it back up again.  I need some ideas how to shut it down and then bring it up in my code.
0
bkr070998
Asked:
bkr070998
  • 2
1 Solution
 
bkr070998Author Commented:
Edited text of question
0
 
jkrCommented:
See 'ControlService()'. Use 'SERVICE_CONTROL_STOP' to stop it and  'SERVICE_CONTROL_START' to restart it.
0
 
bkr070998Author Commented:
jkr - Great answer! It works well

Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now