|
-
March 30th, 2001, 03:43 AM
#1
How to start/stop NT services?
I wants to start & stop service using my app.
Expecting a detailed soln as i m a beginner
:-)
-
March 30th, 2001, 10:41 AM
#2
Re: How to start/stop NT services?
I'm not sure that you can do this in your app. I think you might have to create a batch file that does this for you...
Erica
-
March 30th, 2001, 11:27 AM
#3
Re: How to start/stop NT services?
This will involve a lot of importing Win32 APIs into your code. I've never done it b4 but here are some functions (WIN32 APIs) that you can look into:
OpenSCManager() to get SCM handle
OpenService() to get the service handle
ControlService() to stop the service
CloseServiceHandle() to clsoe the service handle
Good Luck,
-Cool Bizs
Good Luck,
-Cool Bizs
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|