Differences
This shows you the differences between two versions of the page.
| en:ibm:prcp:kbd:gethwid [2014/05/16 17:17] – created valerius | en:ibm:prcp:kbd:gethwid [2016/09/15 02:39] (current) – valerius | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== KbdGetHWId ==== | ==== KbdGetHWId ==== | ||
| - | **Bindings**: | + | **Bindings**:  | 
| - | + | ||
| - | **C**: | + | |
| - | <code c> | + | |
| - | typedef struct _KBDHWID { | + | |
| - |   USHORT length;  | + | |
| - |   USHORT kbd_id;  | + | |
| - | (returned) */ | + | |
| - |   USHORT reserved1;  | + | |
| - |   USHORT reserved2;  | + | |
| - | }KBDHWID; | + | |
| - | + | ||
| - | #define INCL_KBD | + | |
| - | + | ||
| - | USHORT  | + | |
| - | + | ||
| - | PKBDHWID  | + | |
| - | HKBD              | + | |
| - | + | ||
| - | USHORT  | + | |
| - | </ | + | |
| - | + | ||
| - | **MASM**: | + | |
| - | <code asm> | + | |
| - | KBDHWID struc | + | |
| - |   length;  | + | |
| - |   kbd_id;  | + | |
| - |   reserved1;  | + | |
| - |   reserved2;  | + | |
| - | KBDHWID ends | + | |
| - | + | ||
| - | EXTRN KbdGetHWId: | + | |
| - | INCL_KBD  | + | |
| - | + | ||
| - | PUSH@ OTHER  KeyboardID  | + | |
| - | PUSH  WORD    | + | |
| - | CALL KbdGetHWId | + | |
| - | + | ||
| - | Returns WORD | + | |
| - | </ | + | |
| Returns the attached keyboard' | Returns the attached keyboard' | ||
| Line 86: | Line 47: | ||
| This function is of particular usefulness for applications providing Custom Translate Tables and mapping keyboard layouts.  | This function is of particular usefulness for applications providing Custom Translate Tables and mapping keyboard layouts.  | ||
| + | |||
| + | === C bindings === | ||
| + | |||
| + | <code c> | ||
| + | typedef struct _KBDHWID { | ||
| + |   USHORT length;  | ||
| + |   USHORT kbd_id;  | ||
| + | (returned) */ | ||
| + |   USHORT reserved1;  | ||
| + |   USHORT reserved2;  | ||
| + | }KBDHWID; | ||
| + | |||
| + | #define INCL_KBD | ||
| + | |||
| + | USHORT  | ||
| + | |||
| + | PKBDHWID  | ||
| + | HKBD              | ||
| + | |||
| + | USHORT  | ||
| + | </ | ||
| + | |||
| + | === MASM === | ||
| + | |||
| + | <code asm> | ||
| + | KBDHWID struc | ||
| + |   length;  | ||
| + |   kbd_id;  | ||
| + |   reserved1;  | ||
| + |   reserved2;  | ||
| + | KBDHWID ends | ||
| + | |||
| + | EXTRN KbdGetHWId: | ||
| + | INCL_KBD  | ||
| + | |||
| + | PUSH@ OTHER  KeyboardID  | ||
| + | PUSH  WORD    | ||
| + | CALL KbdGetHWId | ||
| + | |||
| + | Returns WORD | ||
| + | </ | ||




