I've just wanted to get the window Width and the window Height using the returned struct of the function GetConsoleScreenBufferInfo();
from header ConsoleApi2.h
. I referenced this question. But then I discovered that this function needs a type _Out_
PCONSOLE_SCREEN_BUFFER_INFO
parameter called lpConsoleScreenBufferInfo
. Which values do I need to pass as that parameter?
Here is the function head:
WINBASEAPI
BOOL
WINAPI
GetConsoleScreenBufferInfo(
_In_ HANDLE hConsoleOutput,
_Out_ PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo
);
Or if there is any other way to get the window Width and Height?
THANKS.