delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/10/20:17:02

From: Charles_Boatwright AT cisnc DOT canon DOT com ("Boatwright, Charles")
Subject: RE: Console and GenerateConsoleCtrlEvent
10 Jul 1997 20:17:02 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <c=US%a=_%p=Canon_Informatio%l=CISNCDC-970710195541Z-2716.cygnus.gnu-win32@cisncdc.cissv.canon.com>
Mime-Version: 1.0
Original-To: "'root AT jacob DOT remcomp DOT fr'" <root AT jacob DOT remcomp DOT fr>
Original-Cc: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Does the process have a console?

In NT, console processes run in the lower 
2 Gigs.  Win32 GUIs run in the upper to 2 
Gigs.  This is the source of the problem.  
If I remember correctly, If a console porcess 
does not have a Window, then it can't access 
any of the message queues.  This info is 
available in MSDEV.  Dig DEEP 
into the CreateProcess Call.  Also 
check MSDN

-cb

>----------
>From: 	root AT jacob DOT remcomp DOT fr[SMTP:root AT jacob DOT remcomp DOT fr]
>Sent: 	Wednesday, July 09, 1997 10:54 AM
>To: 	gnu-win32 AT cygnus DOT com
>Subject: 	Console and GenerateConsoleCtrlEvent
>
>iI am trying to stop a process with the 'GneerateConsoleCtrlEvent' API, but
>I get always an Invalid handle error, even if the handle I am passing to it
>seem absolutely OK.
>
>I am doing this from a GUI program.
>
>--snip--
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019