Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:ibm:prcp:kbd:peek [2014/05/16 18:25] – valerius | en:ibm:prcp:kbd:peek [2016/09/15 02:46] (current) – valerius | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== KbdPeek ==== | ==== KbdPeek ==== | ||
- | **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 | + | |
- | HKBD | + | |
- | + | ||
- | USHORT | + | |
- | </ | + | |
- | + | ||
- | **MASM**: | + | |
- | <code asm> | + | |
- | KBDKEYINFO struc | + | |
- | kbci_chChar | + | |
- | kbci_chScan | + | |
- | kbci_fbStatus | + | |
- | kbci_bNlsShift db ? ;Reserved (set to zero) | + | |
- | kbci_fsState | + | |
- | kbci_time | + | |
- | KBDKEYINFO ends | + | |
- | + | ||
- | EXTRN KbdPeek: | + | |
- | INCL_KBD | + | |
- | + | ||
- | PUSH@ OTHER | + | |
- | PUSH | + | |
- | CALL | + | |
- | + | ||
- | Returns WORD | + | |
- | </ | + | |
This call returns any available character data record from the keyboard without removing it from the buffer. | This call returns any available character data record from the keyboard without removing it from the buffer. | ||
Line 132: | Line 90: | ||
* //Status// can be 0 or 1. | * //Status// can be 0 or 1. | ||
* // | * // | ||
+ | |||
+ | === 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 | ||
+ | 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 KbdPeek:FAR | ||
+ | INCL_KBD | ||
+ | |||
+ | PUSH@ OTHER | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||