From: Vincent Fatica on
On Wed, 18 Jul 2001 02:55:59 GMT, Kenneth Brody <kenbrody(a)bestweb.net>
wrote:

|Part of the MSDN documents a GetConsoleWindow() function which does exactly
|that -- returns the HWND. However, it does not list any of the details that
|are included with the rest of the Windows API, such as which version of
|Windows is required, which header file it's declared in, and which .lib you
|need. Nor does it say "prelimiary information", as much of the new stuff
|is labelled with. Also, I checked *.h in the MSVC and Watcom directories
|and it's not declared in any of them, and the linker can't find it either.

It requires Windows 2000 or later. Read about it here:

http://msdn.microsoft.com/en-us/library/ms683175%28VS.85%29.aspx

WITH MSVC9, it's declaration is inside #if(_WIN32_WINNT >= 0x0500)
--
- Vince