Click here to Skip to main content
16,019,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: gracefully kill a process Pin
Jeroen Walter21-Feb-07 21:20
Jeroen Walter21-Feb-07 21:20 
AnswerRe: gracefully kill a process Pin
Nemanja Trifunovic21-Feb-07 4:42
Nemanja Trifunovic21-Feb-07 4:42 
GeneralRe: gracefully kill a process Pin
JudyL_MD21-Feb-07 10:31
JudyL_MD21-Feb-07 10:31 
GeneralRe: gracefully kill a process Pin
Jim Crafton21-Feb-07 13:45
Jim Crafton21-Feb-07 13:45 
QuestionRe: gracefully kill a process Pin
David Crow21-Feb-07 6:03
David Crow21-Feb-07 6:03 
AnswerRe: gracefully kill a process Pin
Jim Crafton21-Feb-07 13:46
Jim Crafton21-Feb-07 13:46 
GeneralRe: gracefully kill a process [modified] Pin
Jeroen Walter21-Feb-07 21:28
Jeroen Walter21-Feb-07 21:28 
QuestionRe: gracefully kill a process Pin
David Crow22-Feb-07 2:25
David Crow22-Feb-07 2:25 
Jim Crafton wrote:
...it (according to the docs) only allows 2 types of events to be sent, CTRL_C_EVENT, or CTRL_BREAK_EVENT.


Why won't that work for you? If this console window is one you are creating via CreateProcess(), you could simply send it "exit\r\n" via its stdin handle.


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


AnswerRe: gracefully kill a process Pin
Jim Crafton22-Feb-07 3:28
Jim Crafton22-Feb-07 3:28 
GeneralRe: gracefully kill a process Pin
David Crow22-Feb-07 5:54
David Crow22-Feb-07 5:54 
Questionrecvfrom with less than available bytes Pin
Dave_21-Feb-07 4:02
Dave_21-Feb-07 4:02 
AnswerRe: recvfrom with less than available bytes Pin
James R. Twine21-Feb-07 7:05
James R. Twine21-Feb-07 7:05 
GeneralRe: recvfrom with less than available bytes Pin
Dave_21-Feb-07 9:59
Dave_21-Feb-07 9:59 
AnswerRe: recvfrom with less than available bytes Pin
Mark Salsbery21-Feb-07 8:25
Mark Salsbery21-Feb-07 8:25 
GeneralRe: recvfrom with less than available bytes Pin
James R. Twine21-Feb-07 8:38
James R. Twine21-Feb-07 8:38 
GeneralRe: recvfrom with less than available bytes Pin
Mark Salsbery21-Feb-07 8:53
Mark Salsbery21-Feb-07 8:53 
Questioncoding 0f this output Pin
bushxee21-Feb-07 3:51
bushxee21-Feb-07 3:51 
AnswerRe: coding 0f this output Pin
toxcct21-Feb-07 3:56
toxcct21-Feb-07 3:56 
GeneralRe: coding 0f this output Pin
Newbie0021-Feb-07 4:13
Newbie0021-Feb-07 4:13 
GeneralRe: coding 0f this output Pin
bushxee21-Feb-07 4:46
bushxee21-Feb-07 4:46 
GeneralRe: coding 0f this output Pin
toxcct21-Feb-07 4:48
toxcct21-Feb-07 4:48 
GeneralRe: coding 0f this output Pin
bushxee21-Feb-07 4:39
bushxee21-Feb-07 4:39 
GeneralRe: coding 0f this output Pin
toxcct21-Feb-07 4:44
toxcct21-Feb-07 4:44 
GeneralRe: coding 0f this output Pin
ThatsAlok21-Feb-07 5:54
ThatsAlok21-Feb-07 5:54 
GeneralRe: coding 0f this output Pin
toxcct21-Feb-07 5:57
toxcct21-Feb-07 5:57 

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.