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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a service

Status
Not open for further replies.

Doteco

Programmer
Jan 9, 2005
16
AU

I need to add an entry into the "services.msc" file (via code) and assume that this can be done through an API call. Does anybody know the API or, if it's not by API then how do I do it ? Using XP.

Thanks, Doug.

"A nose by any other name still smells the same."



 
What are you trying to do? What do you mean by adding an entry in the services.msc file?

There is a lotmore (or less) to writing a service. However there is a MS (unsupported) OCX (search this forum for services) that may simplify matters

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Thanks Matt,

Since my initial post I have discovered ntsvc.ocx - the one that I assume you are referring to - and using it has enabled me to list a program in the services.msc file which then runs as a service at boot-up.

Thanks again for your reply, Doug.

 
>ntsvc.ocx

Yep, it's the one we normally mention. There's also a (much more sophisticated and comprehensive) commercial product from Desaware that also gets mentioned from time to time - the NT Service Toolkit
 
Desaware is quite expensive though....

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Which I why I was careful to say it was a commercial product.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top