Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Wireless comm. through Wi Fi Pin
Christian Graus31-Jan-07 22:43
protectorChristian Graus31-Jan-07 22:43 
AnswerRe: Wireless comm. through Wi Fi Pin
Waldermort1-Feb-07 2:11
Waldermort1-Feb-07 2:11 
AnswerRe: Wireless comm. through Wi Fi Pin
Hamid_RT1-Feb-07 20:34
Hamid_RT1-Feb-07 20:34 
QuestionChild windows Pin
NorGUI31-Jan-07 22:15
NorGUI31-Jan-07 22:15 
AnswerRe: Child windows Pin
Hamid_RT1-Feb-07 0:28
Hamid_RT1-Feb-07 0:28 
GeneralRe: Child windows Pin
NorGUI1-Feb-07 0:50
NorGUI1-Feb-07 0:50 
QuestionHow to kill Parent and child processes togather Pin
dvsr31-Jan-07 22:14
dvsr31-Jan-07 22:14 
AnswerRe: How to kill Apache Pin
Roger Stoltz31-Jan-07 23:21
Roger Stoltz31-Jan-07 23:21 
If you request a process to shutdown, never mind the way to do it at this point, that process is the only one that is going to be ended. If you'd like other processes as well to be shutdown, you'd have to request them to end respectively.
Once a process is created it lives its own life independant on what process created it, i.e. if the "parent" process is killed the "child" process continues to run unless the "parent" process is designed to explicitly kill its "child" processes.

You should not use ::TerminateProcess().
You can read about the reasons here[^].
What you should do is post a WM_CLOSE message to the main thread, or window, of the process you want to kill. You can simply save the thread handle that you were given when you created the process in the PROCESS_INFORMATION argument. More info here[^].




"It's supposed to be hard, otherwise anybody could do it!" - selfquote

AnswerRe: How to kill Parent and child processes togather Pin
Hamid_RT1-Feb-07 0:27
Hamid_RT1-Feb-07 0:27 
GeneralRe: How to kill Parent and child processes togather Pin
dvsr1-Feb-07 0:33
dvsr1-Feb-07 0:33 
GeneralRe: How to kill Parent and child processes togather Pin
Hamid_RT1-Feb-07 20:42
Hamid_RT1-Feb-07 20:42 
Questioni hope this question can be asked here Pin
kalaveer31-Jan-07 21:56
kalaveer31-Jan-07 21:56 
AnswerRe: i hope this question can be asked here Pin
Don Box31-Jan-07 22:19
Don Box31-Jan-07 22:19 
AnswerRe: i hope this question can be asked here Pin
Christian Graus31-Jan-07 22:48
protectorChristian Graus31-Jan-07 22:48 
QuestionList control width problem in MFC Pin
pandyapunita31-Jan-07 20:35
pandyapunita31-Jan-07 20:35 
AnswerRe: List control width problem in MFC Pin
Naveen31-Jan-07 21:02
Naveen31-Jan-07 21:02 
GeneralRe: List control width problem in MFC Pin
pandyapunita31-Jan-07 22:38
pandyapunita31-Jan-07 22:38 
GeneralRe: List control width problem in MFC Pin
pandyapunita1-Feb-07 2:54
pandyapunita1-Feb-07 2:54 
GeneralRe: List control width problem in MFC Pin
Naveen1-Feb-07 16:20
Naveen1-Feb-07 16:20 
GeneralRe: List control width problem in MFC Pin
pandyapunita1-Feb-07 18:28
pandyapunita1-Feb-07 18:28 
GeneralRe: List control width problem in MFC Pin
Naveen1-Feb-07 19:06
Naveen1-Feb-07 19:06 
GeneralRe: List control width problem in MFC Pin
pandyapunita2-Feb-07 0:10
pandyapunita2-Feb-07 0:10 
GeneralRe: List control width problem in MFC Pin
Naveen2-Feb-07 0:39
Naveen2-Feb-07 0:39 
GeneralRe: List control width problem in MFC Pin
pandyapunita2-Feb-07 1:11
pandyapunita2-Feb-07 1:11 
GeneralRe: List control width problem in MFC Pin
Naveen2-Feb-07 1:13
Naveen2-Feb-07 1:13 

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.