Reputation: 5290
We are developing an application to monitor the services, disk and events of a windows server.
We have a requirement to read the service recovery option and store it into the database table.
So I need to read the service recovery option for a Windows service, through C#.
Please provide any suggestions for this.
Upvotes: 1
Views: 626
Reputation: 1009
You need to some PInvoke. This may help,
http://bytes.com/topic/c-sharp/answers/738444-recovery-settings-windows-service
Upvotes: 3