How can I keep Task Manager from killing my program?
问题 Is there any way to protect my Delphi application from being killed by the Windows task manager (or others like Process Explorer)? I think Windows messages can do that (by doing a hook and intercepting the TerminateProcess message). I want an example of this protection. The Kaspersky Anti-Virus suites are like this; we can't end their process in Task Manager. 回答1: AV Programs like Kaspersky probably use a driver and use hook to prevent termination. In your situation I would advise to set an