int GetKBCodePage()
This function determines which OEM/ANSI tables are loaded by Windows.
This function has no parameters.
The return value specifies the code page currently loaded by Windows. It can be one of the following values:
Value | Meaning |
437 | Default (USA, used by most countries: indicates that there is no OEMANSI.BIN in the Windows directory) |
850 | International (OEMANSI.BIN = XLAT850.BIN) |
860 | Portugal (OEMANSI.BIN = XLAT860.BIN) |
861 | Iceland (OEMANSI.BIN = XLAT861.BIN) |
863 | French Canadian (OEMANSI.BIN = XLAT863.BIN) |
865 | Norway/Denmark (OEMANSI.BIN = XLAT865.BIN) |
If the file OEMANSI.BIN is in the Windows directory, Windows reads it and overwrites the OEM/ANSI translation tables in the keyboard driver.
When the user selects a language within the Setup program and the language does not use the default code page (437), Setup copies the appropriate file (such as XLATPO.BIN) to OEMANSI.BIN in the Windows system directory. If the language uses the default code page, Setup deletes OEMANSI.BIN, if it exists, from the Windows system directory.