Re: bug in GenerateConsoleCtrlEvent?
From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 07/31/04
- Next message: Charles Law: "Re: How to get Filename from an Open Handle"
- Previous message: roman ziak: "Re: How to run Realtime Application in win32 environment"
- In reply to: Sam Jost: "Re: bug in GenerateConsoleCtrlEvent?"
- Next in thread: Sam Jost: "Re: bug in GenerateConsoleCtrlEvent?"
- Reply: Sam Jost: "Re: bug in GenerateConsoleCtrlEvent?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 31 Jul 2004 12:22:40 -0400
"Sam Jost" <samjost@web.de> wrote in message
news:6696c336.0407310312.444d78fd@posting.google.com...
> "Sam Jost" <lumica@noemail.nospam> wrote:
> > I'm trying to end a process by sending him ctrl+break with
> > GenerateConsoleCtrlEvent.
>
> Ah well, I did a few days of digging into this matter, and since the
> only way to send a ctrl+c or ctrl+break to a console app would kill
> the sending app too I just start a new process to attach to the
> console one that'll kill both by sending ctrl+c to it. So my main app
> did not need to do the dirty work of killing the sub app, and
> everyone's getting a friendly end.
It's only a close event which forces the application to end.
-- -GJC [MS Windows SDK MVP] -Software Consultant (Embedded systems and Real Time Controls) - http://www.mvps.org/ArcaneIncantations/consulting.htm -gchanson@mvps.org
- Next message: Charles Law: "Re: How to get Filename from an Open Handle"
- Previous message: roman ziak: "Re: How to run Realtime Application in win32 environment"
- In reply to: Sam Jost: "Re: bug in GenerateConsoleCtrlEvent?"
- Next in thread: Sam Jost: "Re: bug in GenerateConsoleCtrlEvent?"
- Reply: Sam Jost: "Re: bug in GenerateConsoleCtrlEvent?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|