Win32 API 日本語リファレンス
ホームSystem.Console › KEY_EVENT_RECORD

KEY_EVENT_RECORD

構造体
サイズx64: 16 バイト / x86: 16 バイト

サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。

フィールド

フィールドサイズx64x86
bKeyDownBOOL4+0+0
wRepeatCountWORD2+4+4
wVirtualKeyCodeWORD2+6+6
wVirtualScanCodeWORD2+8+8
uChar_uChar_e__Union2+10+10
dwControlKeyStateDWORD4+12+12

共用体: _uChar_e__Union x64 2B / x86 2B

フィールドサイズx64x86
UnicodeCharWCHAR2+0+0
AsciiCharCHAR1+0+0