Click here to Skip to main content
15,893,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I wrap text in Editbox? Pin
Naveen11-May-09 19:26
Naveen11-May-09 19:26 
AnswerRe: How do I wrap text in Editbox? Pin
Michael Schubert11-May-09 21:44
Michael Schubert11-May-09 21:44 
QuestionRemove exe from task manager Pin
Davitor11-May-09 18:23
Davitor11-May-09 18:23 
AnswerRe: Remove exe from task manager [modified] Pin
Madhu Nair11-May-09 19:18
Madhu Nair11-May-09 19:18 
GeneralRe: Remove exe from task manager Pin
Naveen11-May-09 19:28
Naveen11-May-09 19:28 
AnswerRe: Remove exe from task manager Pin
Rajesh R Subramanian11-May-09 20:02
professionalRajesh R Subramanian11-May-09 20:02 
AnswerRe: Remove exe from task manager Pin
Stuart Dootson11-May-09 20:21
professionalStuart Dootson11-May-09 20:21 
AnswerRe: Remove exe from task manager Pin
«_Superman_»11-May-09 20:25
professional«_Superman_»11-May-09 20:25 
As said in some of the other posts, task manager will call TerminateProcess to kill the process.
But there is one thing I have noticed.
TerminateProcess takes an exit code as parameter.
You can retrieve this exit code using GetExitCodeProcess after the process is killed if you have the handle to the process.
And task manager always sets this to 1.

But again, any application can use TerminateProcess to kill a process and give the exit code as 1.

So, if you don't have a return 1; statement in your application entry function, you have a good chance of knowing that it was terminated using task manager.

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

AnswerRe: Remove exe from task manager Pin
Stuart Dootson11-May-09 22:02
professionalStuart Dootson11-May-09 22:02 
GeneralRe: Remove exe from task manager Pin
Rajesh R Subramanian11-May-09 22:19
professionalRajesh R Subramanian11-May-09 22:19 
JokeRe: Remove exe from task manager Pin
Stuart Dootson11-May-09 22:23
professionalStuart Dootson11-May-09 22:23 
JokeRe: Remove exe from task manager Pin
Rajesh R Subramanian11-May-09 23:12
professionalRajesh R Subramanian11-May-09 23:12 
JokeRe: Remove exe from task manager Pin
CPallini11-May-09 23:53
mveCPallini11-May-09 23:53 
JokeRe: Remove exe from task manager Pin
Rajesh R Subramanian12-May-09 0:40
professionalRajesh R Subramanian12-May-09 0:40 
GeneralRe: Remove exe from task manager Pin
CPallini12-May-09 0:48
mveCPallini12-May-09 0:48 
AnswerRe: Remove exe from task manager Pin
krmed12-May-09 0:35
krmed12-May-09 0:35 
QuestionI need help to make a program Pin
Wiland123411-May-09 17:52
Wiland123411-May-09 17:52 
AnswerRe: I need help to make a program Pin
Chandrasekharan P11-May-09 18:02
Chandrasekharan P11-May-09 18:02 
AnswerRe: I need help to make a program Pin
CPallini11-May-09 21:29
mveCPallini11-May-09 21:29 
Questionide channel communication Pin
Mr.S.Wolf.11-May-09 15:59
Mr.S.Wolf.11-May-09 15:59 
QuestionErase text in transparent window Pin
gcorrea11-May-09 13:10
gcorrea11-May-09 13:10 
AnswerRe: Erase text in transparent window Pin
bulg11-May-09 14:07
bulg11-May-09 14:07 
GeneralRe: Erase text in transparent window Pin
Taran911-May-09 18:42
Taran911-May-09 18:42 
GeneralRe: Erase text in transparent window Pin
gcorrea20-May-09 7:27
gcorrea20-May-09 7:27 
QuestionDisplaying an image from a Firewire Camera in MFC Pin
cheekitwong11-May-09 12:11
cheekitwong11-May-09 12:11 

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.