Code:
SMALL_RECT newsize;
newsize.left = 0;
newsize.top = 0;
newsize.right = 160;
newsize.bottom = 100;
SetConsoleWindowInfo(
GetStdHandle(STD_OUTPUT_HANDLE),
TRUE,
&newsize);
This should make the console window 160 characters x 100 lines large. The function will fail, however, if the buffer is not large enough. Since the default buffer is AFAIK only 80 characters wide, you need to adjust that first.
Code:
COORD bufsize;
bufsize.x = 160;
bufsize.y = 200;
SetConsoleScreenBufferSize(
GetStdHandle(STD_OUTPUT_HANDLE),
&bufsize);