Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:ibm:prcp:kbd:getcp [2014/05/16 17:06] – valerius | en:ibm:prcp:kbd:getcp [2016/09/15 02:34] (current) – valerius | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== KbdGetCp ==== | ==== KbdGetCp ==== | ||
| - | **Bindings**:  | + | **Bindings**:  | 
| - | + | ||
| - | **C**: | + | |
| - | <code c> | + | |
| - | #define INCL_KBD | + | |
| - | + | ||
| - | USHORT  | + | |
| - | + | ||
| - | ULONG            Reserved;  | + | |
| - | PUSHORT  | + | |
| - | HKBD              | + | |
| - | + | ||
| - | USHORT  | + | |
| - | </ | + | |
| - | + | ||
| - | **MASM**: | + | |
| - | <code asm> | + | |
| - | EXTRN  KbdGetCp: | + | |
| - | INCL_KBD  | + | |
| - | + | ||
| - | PUSH    | + | |
| - | PUSH@  WORD    CodePageID  | + | |
| - | PUSH    | + | |
| - | CALL    | + | |
| - | + | ||
| - | Returns WORD | + | |
| - | </ | + | |
| This call allows a process to query the code page being used to translate scan codes to ASCII characters.  | This call allows a process to query the code page being used to translate scan codes to ASCII characters.  | ||
| Line 56: | Line 30: | ||
| The // | The // | ||
| + | |||
| + | === C bindings === | ||
| + | |||
| + | <code c> | ||
| + | #define INCL_KBD | ||
| + | |||
| + | USHORT  | ||
| + | |||
| + | ULONG            Reserved;  | ||
| + | PUSHORT  | ||
| + | HKBD              | ||
| + | |||
| + | USHORT  | ||
| + | </ | ||
| + | |||
| + | === MASM bindings === | ||
| + | |||
| + | <code asm> | ||
| + | EXTRN  KbdGetCp: | ||
| + | INCL_KBD  | ||
| + | |||
| + | PUSH    | ||
| + | PUSH@  WORD    CodePageID  | ||
| + | PUSH    | ||
| + | CALL    | ||
| + | |||
| + | Returns WORD | ||
| + | </ | ||




