I dont understand why would it give 80 for X and 300 for Y when its the other way around.
When you open a console the width is larger than its height.
Code:CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
HANDLE hConsoleOut = GetStdHandle( STD_OUTPUT_HANDLE );
GetConsoleScreenBufferInfo( hConsoleOut, &csbiInfo );
printf("%i\n",csbiInfo.dwSize.X);
printf("%i\n\n",csbiInfo.dwSize.Y);