Is there any open source software for Windows that can detect the state of services that is running on Windows? The software can detect either the service is up of down. If it is down, the software will bring it up back.
migrated from stackoverflow.com Mar 14 '11 at 9:17
This question came from our site for professional and enthusiast programmers.
If your goal is to do something specific when a service status changes, you can use the NotifyServiceStatusChange API to register a callback function from the SCM when something happens.
Windows also provides a "Recovery" option on the Properties page for services within