Group: Console - Library: kernel32
The GetConsoleScreenBufferInfo function retrieves information about the specified console screen buffer.
Creating a console window for Visual FoxPro application
BOOL GetConsoleScreenBufferInfo(
HANDLE hConsoleOutput,
PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo
);
DECLARE INTEGER GetConsoleScreenBufferInfo IN kernel32;
INTEGER hConsoleOutput,;
STRING @ lpConsoleScreenBufferInfo
hConsoleOutput [in] Handle to a console screen buffer.
lpConsoleScreenBufferInfo [out] Pointer to a CONSOLE_SCREEN_BUFFER_INFO structure that receives the console screen buffer information.
If the function succeeds, the return value is nonzero.
typedef struct _CONSOLE_SCREEN_BUFFER_INFO {
COORD dwSize; 0:4
COORD dwCursorPosition; 4:4
WORD wAttributes; 8:2
SMALL_RECT srWindow; 10:8
COORD dwMaximumWindowSize; 18:4
} CONSOLE_SCREEN_BUFFER_INFO; total 22 bytes