Group: Console - Library: kernel32
The GetConsoleWindow function retrieves the window handle used by the console associated with the calling process.
Saying "Hello World!" with VFP and WinAPI
Creating a console window for Visual FoxPro application
HWND GetConsoleWindow(void);
DECLARE INTEGER GetConsoleWindow IN kernel32
This function has no parameters.
The return value is a handle to the window used by the console associated with the calling process or NULL if there is no such associated console.