GetConsoleCP function kernel32
Retrieves the input code page used by the console associated with the calling process. A console uses its input code page to translate keyboard input into the corresponding character value.
UINT GetConsoleCP(void);
Implementation
int GetConsoleCP() => _GetConsoleCP();