Keyboard
control codes.
KC_CHAR
Indicates that usch value is valid.
KC_SCANCODE
Indicates that
ucscancode is valid.
Generally, this is set in all WM_CHAR messages generated from actual operator
input. However, if the message has been generated by an application that
has issued the WinSetHook function
to filter keystrokes, or posted to the application queue, this may not be
set.
KC_VIRTUALKEY
Indicates
that usvk is valid.
Normally usvk should be given precedence when processing the message.
Note: For those using hooks, when this bit is set, KC_SCANCODE should
usually be set as well.
KC_KEYUP
The event is a key-up transition; otherwise it
is a down transition.
KC_PREVDOWN
The
key has been previously down; otherwise it has been previously up.
KC_DEADKEY
The character code is a dead key. The application
is responsible for displaying the glyph for the dead key without advancing
the cursor.
KC_COMPOSITE
The
character code is formed by combining the current key with the previous
dead key.
KC_INVALIDCOMP
The
character code is not a valid combination with the preceding dead key. The
application is responsible for advancing the cursor past the dead-key glyph
and then, if the current character is not a space, sounding the alarm and
displaying the new character code.
KC_LONEKEY
Indicates
if the key is pressed and released without any other keys being pressed
or released between the time the key goes down and up.
KC_SHIFT
The SHIFT state is active when key press or release
occurred.
KC_ALT
The ALT
state is active when key press or release occurred.
KC_CTRL
The CTRL state was active when key press or release
occurred.
ucrepeat (UCHAR)
ucscancode (UCHAR)
Hardware
scan code.
A keyboard-generated value that identifies the keyboard event. This is the
raw scan code, not the translated scan code.
usch (USHORT)
Character
code.
The character value translation of the keyboard event resulting from the
current code page that would apply if the CTRL or ALT keys were not depressed.
usvk (USHORT)
Virtual
key codes.
A virtual key value translation of the keyboard event resulting from the
virtual key code table. The low-order byte contains the vk value,
and the high-order byte is always set to zero by the standard translate
table.
- This value applies if fsflags does not contain
KC_VIRTUALKEY.
rc (BOOL)