Solved

How to detect process killed from TaskManager

Posted on 1998-10-15
2
563 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

707 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