KBD_PEEKCHAR (75h) - CharData Record
CharData Record
The character data structure
of the API function KbdCharIn is shown below:
ASCIICharCode (UCHAR)
ASCII character code. The
scan code received from the keyboard is translated to the ASCII character
code.
ScanCode (UCHAR)
Code
received from the keyboard. Scan code received from the keyboard is translated
to the ASCII character code.
Status (UCHAR)
State
of the keystroke event:
Bits 7-6
Has the following values:
00
01
Final character; interim character flag
is turned off
10
11
Final character; interim character flag
is turned on.
Bit 5
If set to 1, immediate conversion requested
Bits
4-2
Bit 1
Has
the following values:
- Scan code is a character 1
Scan
code is not a character; instead it is an extended key code from the keyboard.
Bit 0
If
set to 1, shift status returned without a character.
Reserved
(UCHAR)
NLS shift status. Reserved; must be set
to 0.
ShiftKeyStat (USHORT)