I am working on an application that changes some settings in the disk manager after it launches. It undoes all those changes when it is closed properly.
However when the application crashes because of some reason, it can't undo the changes it did. I am planning to write some sort of a service, which waits for a notification that the application has crashed, and undoes all the changes done by the application.
Is there anyway for one application or a process to be informed when another application crashes? I mean is there any sort of event or message that windows throws for this case?