How to I get the StartType for a given window service

  • Thread starter Thread starter Guest
  • Start date Start date
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#?
 
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.
 
Back
Top