Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:ibm:prcp:kbd:getcp [2014/05/16 17:04] – created 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 33: | Line 7: | ||
| KbdGetCp (Reserved, CodePageID, KbdHandle) | KbdGetCp (Reserved, CodePageID, KbdHandle) | ||
| - | //Reserved.. (**ULONG**) - input | + | //Reserved// (**ULONG**) - input |
| Reserved and must be set to zero. | Reserved and must be set to zero. | ||
| 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 | ||
| + | </ | ||




