Solved

How to detect process killed from TaskManager

Posted on 1998-10-15
2
553 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:ames
2 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 1323350
No chance... taskmgr.exe kills a process using 'TerminateProcess()', thus there is no possibility to intercept this...
0
 
LVL 1

Accepted Solution

by:
arunprakash earned 200 total points
ID: 1323351
hi,
yes u can U can do it .
Override WM_QUERYENDSESSION when the application terminates u will get this message. Im 300% sure about it,

bye,
Arun
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
set up trigger (or something) to rename files (starting with ATL) in a linux directory 6 53
Replacement selected text 2 61
scoreUp challenge 14 62
firstChar challenge 13 115
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question