Win32 API Console Programming in C-Collection of common programming errors
You’d need to use ReadConsoleOutput(). Beware of the ambiguity in a coordinate like (10, 5). It could be relative from the console window upper-left corner. Or from the screen buffer. You’d probably need to make the buffer size the same as the window size to avoid this. SetConsoleScreenBufferSize().
These console functions are not wrapped by the C-runtime. The SDK documentation is quite decent, start here.