Sets the current keyboard code page used to translate keystrokes received from the keyboard. This causes a change in the translation of keys. The code page can be any code page (except EBCDIC to DBCS). Setting this code page does not affect the display or process code pages.
#define INCL_KBD #include <os2.h> ULONG ulReserved; /* Reserved. Must be 0. */ USHORT pidCP; /* Code page ID. */ HKBD hkbd; /* Reserved. Must be 0. */ APIRET rc; /* Return Code. */ rc = KbdSetCp(ulReserved, pidCP, hkbd);