How can I verify if a Windows Service is running

Posted by edosoft on Stack Overflow See other posts from Stack Overflow or by edosoft
Published on 2008-10-07T12:05:59Z Indexed on 2010/03/15 15:19 UTC
Read the original article Hit count: 262

Filed under:
|
|

Hi,

I have an application in C# (2.0 running in XP embedded) that is using a watchdog that is implemented as a Windows Service. When the device boots, this service typically takes some time to start. I'd like to check, from my code, if the service is running. How can I accomplish this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-services