Thangamani  Palanisamy
Thangamani Palanisamy

Reputation: 5290

Is there anyway to read the service recovery option for a windows service in C#?

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

Answers (1)

NthDeveloper
NthDeveloper

Reputation: 1009

You need to some PInvoke. This may help,

http://bytes.com/topic/c-sharp/answers/738444-recovery-settings-windows-service

Upvotes: 3

Related Questions