Solved

How do I shut down NT an NT service

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

708 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

15 Experts available now in Live!

Get 1:1 Help Now