Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Feb : How to trap event when application is killed by Task Manager?

www.cryer.info
Managed Newsgroup Archive

How to trap event when application is killed by Task Manager?

Subject:How to trap event when application is killed by Task Manager?
Posted by:"Diviner" (diviner_ch..@hotmail.com)
Date:Thu, 16 Feb 2006 14:45:51 +0800

Hi all,

I want to do somethings on application terminating even it is terminated
abnormally(or being killed by Task Manager). My application is an
executable file but not a service or any background process.

I know some trapping methods, TForm.OnClose, TForm.OnCloseQuery, or
trapping WM_ENDSESSION, WM_QUERYENDSESSION, WM_QUIT. None of these can
capture CTRL-ALT-DEL delete my application.

How can I do?

Thank you very much.

--
Best regards,
Diviner.

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive