Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you programmatically control a service?

Status
Not open for further replies.

waxwing

Programmer
Dec 18, 2003
1
US
Greetings!

I would like to programmatically disable
the Messenger service. Looking through the documentation,
I found that I can use the ServiceController class
to stop and start a service. But, how do I programmatically change the service's start type to
"Manual" or "Disabled"?

Thanks in advance for your help!

Waxwing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top