GetKBCodePage

  WORD GetKBCodePage(void)    

The GetKBCodePage function identifies which OEM/ANSI translation table and code page the keyboard driver is using.

Parameters

This function has no parameters.

Return Value

The return value is the current code page in the AX register. The code page indicates which OEM/ANSI translation-table file is loaded.

Comments

The export ordinal for this function is 132.

The following lists the possible code pages and corresponding OEM/ANSI translation-table files.

Value Meaning and Filename

437 Default (U.S., most countries. No OEMANSI.BIN file)
860 Portugal (XLATPO.BIN)
863 French Canada (XLATCA.BIN)
865 Norway/Denmark (XLATNO.BIN)
850 International code page (XLAT850.BIN)

If the OEMANSI.BIN setting in the [Keyboard] section of the SYSTEM.INI file specifies an OEMANSI translation-table file, the keyboard driver loads the file and sets the code page to the specified code page.

Because code page 437 is the default, if the OEMANSI.BIN setting is blank, the keyboard driver uses the default translation table and code page. For most drivers, the default code page is 437.