Virtual-Key Codes (Winuser.h) - Win32 Apps - Microsoft Docs
Virtual-Key Codes (Winuser.h) - Win32 Apps - Microsoft Docs
The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used
by the system. The codes are listed in numeric order.
Constant/value Description
- Undefined
0x07
Constant/value Description
- Reserved
0x0A-0B
- Undefined
0x0E-0F
VK_IME_ON IME On
0x16
VK_SPACE SPACEBAR
0x20
0x30 0 key
0x31 1 key
0x32 2 key
0x33 3 key
Constant/value Description
0x34 4 key
0x35 5 key
0x36 6 key
0x37 7 key
0x38 8 key
0x39 9 key
- Undefined
0x3A-40
0x41 A key
0x42 B key
0x43 C key
0x44 D key
0x45 E key
0x46 F key
0x47 G key
0x48 H key
Constant/value Description
0x49 I key
0x4A J key
0x4B K key
0x4C L key
0x4D M key
0x4E N key
0x4F O key
0x50 P key
0x51 Q key
0x52 R key
0x53 S key
0x54 T key
0x55 U key
0x56 V key
0x57 W key
0x58 X key
Constant/value Description
0x59 Y key
0x5A Z key
- Reserved
0x5E
VK_F1 F1 key
0x70
VK_F2 F2 key
0x71
VK_F3 F3 key
0x72
VK_F4 F4 key
0x73
VK_F5 F5 key
0x74
VK_F6 F6 key
0x75
VK_F7 F7 key
0x76
VK_F8 F8 key
0x77
VK_F9 F9 key
0x78
- Unassigned
0x88-8F
- Unassigned
0x97-9F
- Reserved
0xB8-B9
Constant/value Description
- Reserved
0xC1-D7
- Unassigned
0xD8-DA
- Reserved
0xE0
VK_OEM_102 Either the angle bracket key or the backslash key on the RT 102-key keyboard
0xE2
VK_PACKET Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value
0xE7 used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and
WM_KEYUP
- Unassigned
0xE8
VK_NONAME Reserved
0xFC
Requirements