From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: HWND of the console
Date: Sat, 25 Jun 2005 18:07:02 -0700
Date: 2005-06-25T18:07:02-07:00 [thread overview]
Message-ID: <BKGdnVwW0pf9YiDfRVn-sw@comcast.com> (raw)
In-Reply-To: 42bd0802$0$24266$ba620e4c@news.skynet.be
"Adrien Plisson" <aplisson-news@stochastique.net> wrote in message
news:42bd0802$0$24266$ba620e4c@news.skynet.be...
> Steve wrote:
>> WinBase.GetStdHandle( WinBase.STD_OUTPUT_HANDLE )
>
> this does not return a WINDOW handle (HWND) but a DEVICE handle. the
> return value of this function cannot be used in function taking a HWND as
> a parameter.
>
> --
> rien
>
Then try "GetConsoleWindow" defined in Kernel32.lib.
Requires W2K or XP.
In the SDK documentation:
HWND GetConsoleWindow(void);
The GetConsoleWindow function retrieves the window handle used by the
console associated with the calling process.
Steve
(The Duck)
prev parent reply other threads:[~2005-06-26 1:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 13:56 HWND of the console Sylvain
2005-06-24 14:25 ` Adrien Plisson
2005-06-25 1:46 ` Steve
2005-06-25 7:32 ` Adrien Plisson
2005-06-26 1:07 ` Steve [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox