GetConsoleOutputCP function kernel32
Retrieves the output code page used by the console associated with the calling process. A console uses its output code page to translate the character values written by the various output functions into the images displayed in the console window.
UINT GetConsoleOutputCP(void);
Implementation
int GetConsoleOutputCP() => _GetConsoleOutputCP();