How to I get the StartType for a given window service

G

Guest

I can get the status of a Window Services using the ServiceController class.
But how does one determine that starttype for a given service? I would like
to look at each service and determine which services are started
"Automatically". How can I do that in C#?
 
D

Dave Sexton

Hi Greg,

AFAIK, there is no FCL component providing that information.

Do a search in groups.google.com and you'll find some info relating to the
registry, WMI and Win32 API functions. Try "dotnet ServiceController
startup type", for instance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top