KEY_EVENT_RECORD STRUCT
(MS-Windows)
Used to report keyboard input events in a console
INPUT_RECORD structure.
Keyboard events are generated when any key is
pressed or released (including control keys).
KEY_EVENT_RECORD STRUCT bKeyDown DWORD ? ; Win32 BOOL is 32 bits wRepeatCount WORD ? wVirtualKeyCode WORD ? wVirtualScanCode WORD ? UNION uChar UnicodeChar WORD ? AsciiChar BYTE ? ENDS dwControlKeyState DWORD ? KEY_EVENT_RECORD ENDS |
Member | Win Type | MASM Type | Description |
---|---|---|---|
bKeyDown | Win32 BOOL | DWORD | TRUE if the key is being pressed, FALSE if the key is being released. |
wRepeatCount | WORD | WORD | A count indicating that a key is being held down. For example, if a key is held down, you might get 5 events with this member equal to 1, one event with this member equal to 5, or ... |
wVirtualKeyCode | WORD | WORD | The virtual-key code (device-independent) |
wVirtualScanCode | WORD | WORD | The virtual scan code (device-dependent). |
uChar.UnicodeChar | WCHAR | WORD | Translated Unicode character. |
uChar.AcsiiChar | CHAR | BYTE | Translated ASCII character. |
dwControlKeyState | DWORD | DWORD | State of the control keys (a bit-wise combination of
the following values): · RIGHT_ALT_PRESSED (0001h) right alt key is pressed. · LEFT_ALT_PRESSED (0002h) left alt key is pressed. · RIGHT_CTRL_PRESSED (0004h) right ctrl key is pressed. · LEFT_CTRL_PRESSED (0008h) left ctrl key is pressed. · SHIFT_PRESSED (0010h) shift key is pressed. · NUMLOCK_ON (0020h) numlock light is on. · SCROLLLOCK_ON (0040h) scrolllock light is on. · CAPSLOCK_ON (0080h) capslock light is on. · ENHANCED_KEY (0100h) key is enhanced. |
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |