Solved

How do I shut down NT an NT service

Posted on 1998-10-02
3
329 Views
Last Modified: 2008-02-01
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
Comment
Question by:bkr070998
  • 2
3 Comments
 

Author Comment

by:bkr070998
ID: 1174258
Edited text of question
0
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 1174259
See 'ControlService()'. Use 'SERVICE_CONTROL_STOP' to stop it and  'SERVICE_CONTROL_START' to restart it.
0
 

Author Comment

by:bkr070998
ID: 1174260
jkr - Great answer! It works well

Thanks
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Handle Exceptions during instantiation 28 429
Best book to learn C++ 4 87
c++ reading data from file into two dimensional array 3 131
No module found pypyodbc, 3 45
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question