Virtual-Key Codes
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.
Constants
- VK_HANGUEL (0x15)
- IME Hanguel mode (maintained for compatibility; use VK_HANGUL)
- (0x30)
- 0 key
- (0x31)
- 1 key
- (0x32)
- 2 key
- (0x33)
- 3 key
- (0x34)
- 4 key
- (0x35)
- 5 key
- (0x36)
- 6 key
- (0x37)
- 7 key
- (0x38)
- 8 key
- (0x39)
- 9 key
- (0x41)
- A key
- (0x42)
- B key
- (0x43)
- C key
- (0x44)
- D key
- (0x45)
- E key
- (0x46)
- F key
- (0x47)
- G key
- (0x48)
- H key
- (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
- (0x59)
- Y key
- (0x5A)
- Z key
- (0x92-96)
- OEM specific
- VK_OEM_1 (0xBA)
- Used for miscellaneous characters; it can vary by keyboard.
Windows 2000/XP: For the US standard keyboard, the ';:' key
- VK_OEM_2 (0xBF)
- Used for miscellaneous characters; it can vary by keyboard.
Windows 2000/XP: For the US standard keyboard, the '/?' key
- VK_OEM_3 (0xC0)
- Used for miscellaneous characters; it can vary by keyboard.
Windows 2000/XP: For the US standard keyboard, the '`~' key
- VK_OEM_4 (0xDB)
- Used for miscellaneous characters; it can vary by keyboard.
Windows 2000/XP: For the US standard keyboard, the '[{' key
- VK_OEM_5 (0xDC)
- Used for miscellaneous characters; it can vary by keyboard.
Windows 2000/XP: For the US standard keyboard, the '\|' key
- VK_OEM_6 (0xDD)
- Used for miscellaneous characters; it can vary by keyboard.
Windows 2000/XP: For the US standard keyboard, the ']}' key
- VK_OEM_7 (0xDE)
- Used for miscellaneous characters; it can vary by keyboard.
Windows 2000/XP: For the US standard keyboard, the 'single-quote/double-quote' key
- (0xE1)
- OEM specific
- VK_OEM_102 (0xE2)
- Windows 2000/XP: Either the angle bracket key or the backslash key on the RT 102-key keyboard
- (0xE3-E4)
- OEM specific
- (0xE6)
- OEM specific
- VK_PACKET (0xE7)
- Windows 2000/XP: 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 used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP
- (0xE9-F5)
- OEM specific
'C & C++ > C & C++' 카테고리의 다른 글
내문서 경로 가져오기 (0) | 2012.06.20 |
---|---|
바탕화면 폴더 경로 가져오기 (0) | 2012.06.20 |
CFileDialog 사용시 왼쪽버튼 바로가기 만들기(탐색기형식) (0) | 2012.06.12 |
CPU 사용률 알아오기 (0) | 2012.06.12 |
OS 버전 알아오기 (0) | 2012.06.12 |
댓글