Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:ibm:prcp:kbd:peek [2014/05/16 18:24] – 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 128: | Line 86: | ||
| Some options operate differently in the DOS mode than in the OS/2 mode. Therefore, the following restrictions apply to //KbdPeek// when coding for the DOS mode: | Some options operate differently in the DOS mode than in the OS/2 mode. Therefore, the following restrictions apply to //KbdPeek// when coding for the DOS mode: | ||
| - |   * The CharData structure includes everything except the time stamp.  | + |   * The //CharData// structure includes everything except the time stamp.  | 
|   * Interim character is not supported.  |   * Interim character is not supported.  | ||
| - | * Status can be 0 or 1. | + | * //Status// can be 0 or 1. | 
| - |   * 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  | ||
| + | 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: | ||
| + | INCL_KBD  | ||
| + | |||
| + | PUSH@  OTHER    | ||
| + | PUSH    | ||
| + | CALL    | ||
| + | |||
| + | Returns WORD | ||
| + | </ | ||




