Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:ibm:prcp:kbd:charin [2014/05/13 14:15] – external edit 127.0.0.1 | en:ibm:prcp:kbd:charin [2016/09/15 02:17] (current) – valerius | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== KbdCharIn ==== | ==== KbdCharIn ==== | ||
- | **Bindings**: | + | **Bindings**: |
- | + | ||
- | C: | + | |
- | <code c> | + | |
- | typedef struct _KBDKEYINFO { /* kbci */ | + | |
- | UCHAR chChar; | + | |
- | UCHAR chScan; | + | |
- | UCHAR fbStatus; | + | |
- | UCHAR bNlsShift; | + | |
- | USHORT | + | |
- | ULONG time; /* Time stamp of keystroke (ms since ipl) */ | + | |
- | }KBDKEYINFO; | + | |
- | + | ||
- | #define INCL_KBD | + | |
- | + | ||
- | USHORT | + | |
- | + | ||
- | PKBDKEYINFO | + | |
- | USHORT | + | |
- | HKBD | + | |
- | + | ||
- | USHORT | + | |
- | </ | + | |
- | + | ||
- | Asm: | + | |
- | <code asm> | + | |
- | KBDKEYINFO struc | + | |
- | kbci_chChar | + | |
- | kbci_chScan | + | |
- | kbci_fbStatus | + | |
- | kbci_bNlsShift db ? ;Reserved (set to zero) | + | |
- | kbci_fsState | + | |
- | kbci_time | + | |
- | KBDKEYINFO ends | + | |
- | + | ||
- | EXTRN KbdCharIn: | + | |
- | INCL_KBD | + | |
- | + | ||
- | PUSH@ OTHER | + | |
- | PUSH | + | |
- | PUSH | + | |
- | CALL | + | |
- | + | ||
- | Returns WORD | + | |
- | </ | + | |
This call returns a character data record from the keyboard. | This call returns a character data record from the keyboard. | ||
Line 138: | Line 94: | ||
* Status can be 0 or 40H | * Status can be 0 or 40H | ||
* KbdHandle is ignored. | * KbdHandle is ignored. | ||
+ | |||
+ | === C bindings === | ||
+ | |||
+ | <code c> | ||
+ | typedef struct _KBDKEYINFO { /* kbci */ | ||
+ | UCHAR chChar; | ||
+ | UCHAR chScan; | ||
+ | UCHAR fbStatus; | ||
+ | UCHAR bNlsShift; | ||
+ | USHORT | ||
+ | ULONG time; /* Time stamp of keystroke (ms since ipl) */ | ||
+ | }KBDKEYINFO; | ||
+ | |||
+ | #define INCL_KBD | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | PKBDKEYINFO | ||
+ | USHORT | ||
+ | HKBD | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | === MASM bindings === | ||
+ | |||
+ | <code asm> | ||
+ | KBDKEYINFO struc | ||
+ | kbci_chChar | ||
+ | kbci_chScan | ||
+ | kbci_fbStatus | ||
+ | kbci_bNlsShift db ? ;Reserved (set to zero) | ||
+ | kbci_fsState | ||
+ | kbci_time | ||
+ | KBDKEYINFO ends | ||
+ | |||
+ | EXTRN KbdCharIn: | ||
+ | INCL_KBD | ||
+ | |||
+ | PUSH@ OTHER | ||
+ | PUSH | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||
+ | |||
+ |