This call allows a process to query the code page being used to translate scan codes to ASCII characters.
KbdGetCp
Reserved (ULONG) - input
The CodePageID is the currently active keyboard code page. A value of 0 indicates the code page translation table in use is the ROM code page translation table provided by the hardware.