How can I catch when somebody kills my application (java, but it is not important) by taskmanager or by taskkill console command?
I understand that I cannot catch this IN my application but maybe I can do this by some hook with OS (windows of course). Maybe easyhook library (http://www.codeplex.com/easyhook) can help me, but I can not find examples there. Our application often died on customers servers and I just want to know who (or what) kills it. We are sure that it is not application issue, it seems that java.exe process was killed from taskmanager