I would like to run another program when a service crashes. I know that I should use SERVICE_FAILURE_ACTIONS
and ChangeServiceConfig2()
provided by Microsoft. But, I got stuck using them because I can not find any example of using these structure and function.
I would appreciate it if anyone can show me an example to implement this.