Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:ibm:prcp:kbd:getstatus [2014/05/16 17:50] – valerius | en:ibm:prcp:kbd:getstatus [2016/09/15 02:41] (current) – valerius | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== KbdGetStatus ==== | ==== KbdGetStatus ==== | ||
| - | **Bindings**: | + | **Bindings**: |
| - | + | ||
| - | **C**: | + | |
| - | <code c> | + | |
| - | typedef struct _KBDINFO { /* kbst */ | + | |
| - | USHORT cb; /* length in bytes of this structure */ | + | |
| - | USHORT fsMask; | + | |
| - | USHORT chTurnAround; | + | |
| - | USHORT fsInterim; | + | |
| - | USHORT fsState; | + | |
| - | }KBDINFO; | + | |
| - | + | ||
| - | #define INCL_KBD | + | |
| - | + | ||
| - | USHORT | + | |
| - | + | ||
| - | PKBDINFO | + | |
| - | HKBD | + | |
| - | + | ||
| - | USHORT | + | |
| - | </ | + | |
| - | + | ||
| - | **MASM**: | + | |
| - | <code asm> | + | |
| - | KBDINFO struc | + | |
| - | kbst_cb | + | |
| - | kbst_fsMask | + | |
| - | kbst_chTurnAround dw ? ;define TurnAround character | + | |
| - | kbst_fsInterim | + | |
| - | kbst_fsState | + | |
| - | KBDINFO ends | + | |
| - | + | ||
| - | EXTRN KbdGetStatus: | + | |
| - | INCL_KBD | + | |
| - | + | ||
| - | PUSH@ OTHER | + | |
| - | PUSH | + | |
| - | CALL | + | |
| - | + | ||
| - | Returns WORD | + | |
| - | </ | + | |
| This call gets the current state of the keyboard. | This call gets the current state of the keyboard. | ||
| Line 138: | Line 98: | ||
| * NLS_SHIFT_STATE is always NULL. | * NLS_SHIFT_STATE is always NULL. | ||
| * // | * // | ||
| + | |||
| + | === C bindings === | ||
| + | |||
| + | <code c> | ||
| + | typedef struct _KBDINFO { /* kbst */ | ||
| + | USHORT cb; /* length in bytes of this structure */ | ||
| + | USHORT fsMask; | ||
| + | USHORT chTurnAround; | ||
| + | USHORT fsInterim; | ||
| + | USHORT fsState; | ||
| + | }KBDINFO; | ||
| + | |||
| + | #define INCL_KBD | ||
| + | |||
| + | USHORT | ||
| + | |||
| + | PKBDINFO | ||
| + | HKBD | ||
| + | |||
| + | USHORT | ||
| + | </ | ||
| + | |||
| + | === MASM bindings === | ||
| + | |||
| + | <code asm> | ||
| + | KBDINFO struc | ||
| + | kbst_cb | ||
| + | kbst_fsMask | ||
| + | kbst_chTurnAround dw ? ;define TurnAround character | ||
| + | kbst_fsInterim | ||
| + | kbst_fsState | ||
| + | KBDINFO ends | ||
| + | |||
| + | EXTRN KbdGetStatus: | ||
| + | INCL_KBD | ||
| + | |||
| + | PUSH@ OTHER | ||
| + | PUSH | ||
| + | CALL | ||
| + | |||
| + | Returns WORD | ||
| + | </ | ||




