This function seems to be included in windows.h but GCC sends me nafig with this function. The task is from uni, and it is necessary that the code works when compiling directly from the console.
#include <stdio.h> #include <windows.h> #include <conio.h> #include <string.h> void main() { short screenWidth = 192, screenHeight = 108, cs = 8; SMALL_RECT writeRegion = { 0, 0, 1, 1 }; HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); HWND hWindow = GetConsoleWindow(); CHAR_INFO *lpBuffer; SetConsoleWindowInfo(hStdOut, TRUE, &writeRegion); COORD bufferSize = { screenWidth, screenHeight }; SetConsoleScreenBufferSize(hStdOut, bufferSize); SetConsoleActiveScreenBuffer(hStdOut); CONSOLE_FONT_INFOEX fontInfo; } 