Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Deleting a file to the recycle bin using SHFileOperation Pin
David Crow9-Jun-10 3:02
David Crow9-Jun-10 3:02 
AnswerRe: Deleting a file to the recycle bin using SHFileOperation Pin
elie0029-Jun-10 20:31
elie0029-Jun-10 20:31 
QuestionTask Mgr message Pin
Pryabu8-Jun-10 23:05
Pryabu8-Jun-10 23:05 
AnswerMessage Removed Pin
8-Jun-10 23:09
rp_suman8-Jun-10 23:09 
GeneralRe: Task Mgr message Pin
Pryabu8-Jun-10 23:11
Pryabu8-Jun-10 23:11 
GeneralRe: Task Mgr message Pin
rp_suman8-Jun-10 23:21
rp_suman8-Jun-10 23:21 
GeneralRe: Task Mgr message Pin
Pryabu8-Jun-10 23:30
Pryabu8-Jun-10 23:30 
AnswerRe: Task Mgr message Pin
«_Superman_»8-Jun-10 23:39
professional«_Superman_»8-Jun-10 23:39 
When an application is terminated using end process of task manager, the application is terminated externally.
There is no message or event sent to the application.
So there is no way that the application can know if such a thing is happening.

Task Manager uses the TerminateProcess API with an exit code of 1 to achieve this.
So the only chance you have is to hook into the TerminateProcess API.
«_Superman

I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C







GeneralRe: Task Mgr message Pin
Pryabu8-Jun-10 23:56
Pryabu8-Jun-10 23:56 
GeneralRe: Task Mgr message Pin
«_Superman_»9-Jun-10 0:02
professional«_Superman_»9-Jun-10 0:02 
GeneralRe: Task Mgr message Pin
Pryabu9-Jun-10 0:04
Pryabu9-Jun-10 0:04 
GeneralRe: Task Mgr message Pin
rakesh54549-Jun-10 0:20
rakesh54549-Jun-10 0:20 
GeneralRe: Task Mgr message Pin
Pryabu9-Jun-10 0:44
Pryabu9-Jun-10 0:44 
GeneralRe: Task Mgr message Pin
Richard Andrew x649-Jun-10 4:48
professionalRichard Andrew x649-Jun-10 4:48 
GeneralRe: Task Mgr message Pin
«_Superman_»9-Jun-10 6:21
professional«_Superman_»9-Jun-10 6:21 
GeneralRe: Task Mgr message Pin
Stephen Hewitt9-Jun-10 14:10
Stephen Hewitt9-Jun-10 14:10 
AnswerRe: Task Mgr message Pin
Stephen Hewitt9-Jun-10 14:14
Stephen Hewitt9-Jun-10 14:14 
Questionmemory leak Pin
zon_cpp8-Jun-10 23:04
zon_cpp8-Jun-10 23:04 
AnswerRe: memory leak Pin
rp_suman8-Jun-10 23:26
rp_suman8-Jun-10 23:26 
AnswerRe: memory leak Pin
Niklas L8-Jun-10 23:29
Niklas L8-Jun-10 23:29 
GeneralRe: memory leak Pin
zon_cpp9-Jun-10 0:49
zon_cpp9-Jun-10 0:49 
GeneralRe: memory leak Pin
Niklas L9-Jun-10 0:58
Niklas L9-Jun-10 0:58 
GeneralRe: memory leak Pin
zon_cpp9-Jun-10 1:15
zon_cpp9-Jun-10 1:15 
GeneralRe: memory leak Pin
Niklas L9-Jun-10 1:26
Niklas L9-Jun-10 1:26 
GeneralRe: memory leak Pin
zon_cpp9-Jun-10 1:52
zon_cpp9-Jun-10 1:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.