Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Detecting if process is killed. Pin
Code-o-mat28-Jan-12 7:59
Code-o-mat28-Jan-12 7:59 
AnswerRe: Detecting if process is killed. Pin
Randor 28-Jan-12 4:59
professional Randor 28-Jan-12 4:59 
GeneralRe: Detecting if process is killed. Pin
Code-o-mat28-Jan-12 10:49
Code-o-mat28-Jan-12 10:49 
GeneralRe: Detecting if process is killed. Pin
Randor 28-Jan-12 11:59
professional Randor 28-Jan-12 11:59 
GeneralRe: Detecting if process is killed. Pin
Code-o-mat28-Jan-12 23:33
Code-o-mat28-Jan-12 23:33 
GeneralRe: Detecting if process is killed. Pin
Randor 29-Jan-12 11:03
professional Randor 29-Jan-12 11:03 
GeneralRe: Detecting if process is killed. Pin
Code-o-mat1-Feb-12 3:03
Code-o-mat1-Feb-12 3:03 
GeneralRe: Detecting if process is killed. Pin
Randor 1-Feb-12 7:32
professional Randor 1-Feb-12 7:32 
Hey,

Sorry... I assumed that you already knew all that. Some old posts:

what will happen when i terminate a process?[^]
Handling a process termination.[^]

Anyway... could you give me some details about the environment that you intend on using this code? In my case... I was working with special devices with a customized embedded XP and I had control over the operating system... because we designed the OS. I guess what I am asking... is... are you in a similar situation or do you intend on attempting to block this on a standard Windows box. Doing this is an extreme hack... and I would only recommend attepting this in a controlled/closed environment.

Did you hook both NtTerminateProcess and Endtask inside task manager? You can simply ignore the WM_CLOSE message in the target application... or perhaps hook SendMessageTimeoutW and simply return TRUE if the window handle is owned by the target process. I think I used an AppInit DLL to accomplish this on the embedded XP platform.

Keep me informed on your progress... I have been *extremely* busy the last few days but I expect to be finished soon and have some free time starting Friday and through the next weekend. What I wanted to do was grap my old DLL and install it into a Windows7 VM to see if it worked there. I highly doubt anything has changed... when you open the task manager it executes under the credentials of the currently logged in user...

If you want... click 'Email' in my reply and maybe we could collaborate and share some code.

Best Wishes,
-David Delaune
QuestionParsing in C Pin
Software200727-Jan-12 8:29
Software200727-Jan-12 8:29 
AnswerRe: Parsing in C Pin
Chris Meech27-Jan-12 8:57
Chris Meech27-Jan-12 8:57 
GeneralRe: Parsing in C Pin
Software200727-Jan-12 9:09
Software200727-Jan-12 9:09 
GeneralRe: Parsing in C Pin
Chris Meech27-Jan-12 9:28
Chris Meech27-Jan-12 9:28 
GeneralRe: Parsing in C Pin
CPallini28-Jan-12 23:03
mveCPallini28-Jan-12 23:03 
GeneralRe: Parsing in C Pin
Erudite_Eric29-Jan-12 21:10
Erudite_Eric29-Jan-12 21:10 
AnswerRe: Parsing in C Pin
David Crow27-Jan-12 9:38
David Crow27-Jan-12 9:38 
GeneralRe: Parsing in C Pin
Software200727-Jan-12 9:52
Software200727-Jan-12 9:52 
GeneralRe: Parsing in C Pin
David Crow27-Jan-12 10:09
David Crow27-Jan-12 10:09 
Questionread/write disk sectors Pin
RomTibi27-Jan-12 7:21
RomTibi27-Jan-12 7:21 
QuestionProcess not entirely exiting Pin
Joe Woodbury27-Jan-12 5:49
professionalJoe Woodbury27-Jan-12 5:49 
AnswerRe: Process not entirely exiting Pin
Randor 27-Jan-12 6:33
professional Randor 27-Jan-12 6:33 
QuestionSet the font for text Pin
MKC00226-Jan-12 18:05
MKC00226-Jan-12 18:05 
QuestionRe: Set the font for text Pin
«_Superman_»26-Jan-12 18:36
professional«_Superman_»26-Jan-12 18:36 
AnswerRe: Set the font for text Pin
MKC00226-Jan-12 20:41
MKC00226-Jan-12 20:41 
GeneralRe: Set the font for text Pin
«_Superman_»26-Jan-12 20:48
professional«_Superman_»26-Jan-12 20:48 
GeneralRe: Set the font for text Pin
MKC00227-Jan-12 7:45
MKC00227-Jan-12 7:45 

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.