Differences
This shows you the differences between two versions of the page.
| en:ibm:prcp:kbd:setcp [2014/05/16 18:29] – created valerius | en:ibm:prcp:kbd:setcp [2016/09/15 02:51] (current) – valerius | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== KbdSetCp ==== | ==== KbdSetCp ==== | ||
| - | **Bindings**: | + | **Bindings**: |
| - | + | ||
| - | **C**: | + | |
| - | <code c> | + | |
| - | #define INCL_KBD | + | |
| - | + | ||
| - | USHORT | + | |
| - | + | ||
| - | USHORT | + | |
| - | USHORT | + | |
| - | HKBD | + | |
| - | + | ||
| - | USHORT | + | |
| - | </ | + | |
| - | + | ||
| - | **MASM**: | + | |
| - | <code asm> | + | |
| - | EXTRN KbdSetCp: | + | |
| - | INCL_KBD | + | |
| - | + | ||
| - | PUSH | + | |
| - | PUSH | + | |
| - | PUSH | + | |
| - | CALL | + | |
| - | + | ||
| - | Returns WORD | + | |
| - | </ | + | |
| This call allows the process to set the code page used to translate key strokes received from the keyboard. | This call allows the process to set the code page used to translate key strokes received from the keyboard. | ||
| Line 64: | Line 38: | ||
| Keyboard code page support is not available without the DEVINFO=KBD statement in the CONFIG.SYS file. Refer to IBM Operating System/2 Standard Edition Version 1.2 Using Advanced Features for a complete description of CODEPAGE and DEVINFO. | Keyboard code page support is not available without the DEVINFO=KBD statement in the CONFIG.SYS file. Refer to IBM Operating System/2 Standard Edition Version 1.2 Using Advanced Features for a complete description of CODEPAGE and DEVINFO. | ||
| + | |||
| + | === C bindings === | ||
| + | |||
| + | <code c> | ||
| + | #define INCL_KBD | ||
| + | |||
| + | USHORT | ||
| + | |||
| + | USHORT | ||
| + | USHORT | ||
| + | HKBD | ||
| + | |||
| + | USHORT | ||
| + | </ | ||
| + | |||
| + | === MASM bindings === | ||
| + | |||
| + | <code asm> | ||
| + | EXTRN KbdSetCp: | ||
| + | INCL_KBD | ||
| + | |||
| + | PUSH | ||
| + | PUSH | ||
| + | PUSH | ||
| + | CALL | ||
| + | |||
| + | Returns WORD | ||
| + | </ | ||
| + | |||




