From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: Re: HWND of the console
Date: Fri, 24 Jun 2005 16:25:41 +0200
Date: 2005-06-24T16:25:41+02:00 [thread overview]
Message-ID: <42bc1772$0$24327$ba620e4c@news.skynet.be> (raw)
In-Reply-To: <e465bcf0.0506240556.7a08f26a@posting.google.com>
Sylvain wrote:
> Hi,
> Can you give me a piece of code which give me the HWND of the current
> console window given by default by Adagide in the Gnat environment
> with the only add-on called "Win32ADA", please.
>
from the MSDN
<http://support.microsoft.com/default.aspx?scid=kb;en-us;124103>:
"It may be useful to manipulate a window associated with a console
application. The Win32 API provides no direct method for obtaining the
window handle associated with a console application. However, you can
obtain the window handle by calling FindWindow(). This function
retrieves a window handle based on a class name or window name. "
IMHO, the method they describe in the article is risky. i can think of
2 other methods to get the HWND but they are risky as well !
OTOH, i can't see anything useful in retrieving the HWND of a console
application... may we have more information on the purpose of this
request ?
> Thank you ! Bye !
--
rien
next prev parent reply other threads:[~2005-06-24 14:25 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 [this message]
2005-06-25 1:46 ` Steve
2005-06-25 7:32 ` Adrien Plisson
2005-06-26 1:07 ` Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox