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)
Shift
key status. Values are:
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Time
(ULONG)
Time stamp indicating when a key was pressed.
It is specified in milliseconds from the time the system was started.
[Back]
[Next]