Solved

How do I shut down NT an NT service

Posted on 1998-10-02
3
326 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now