Link to home
Start Free TrialLog in
Avatar of ames
ames

asked on

How to detect process killed from TaskManager

MFC app. How to detect if the process is being killed from taskmanager by clicking on "End process" button. The app needs to clean up and exit gracefully.
Avatar of jkr
jkr
Flag of Germany image

No chance... taskmgr.exe kills a process using 'TerminateProcess()', thus there is no possibility to intercept this...
ASKER CERTIFIED SOLUTION
Avatar of arunprakash
arunprakash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial