2009. 5. 21. 15:59

키보드 스캔코드



키보드 스캔코드 값이다.
인터넷에 떠도는거 대충 스크랩해온 것임..
키보드 작업할 때 유용하게 사용하고 있는데, 자꾸 찾기 귀찮아서 여기에 밖아놓으려구.. ^^;

Const SCANKEY_ESC = 1(0x01)

Const SCANKEY_1 = 2(0x02)               ' 1
Const SCANKEY_2 = 3(0x03)               ' 2
Const SCANKEY_3 = 4(0x04)               ' 3
Const SCANKEY_4 = 5(0x05)               ' 4
Const SCANKEY_5 = 6(0x06)               ' 5
Const SCANKEY_6 = 7(0x07)               ' 6
Const SCANKEY_7 = 8(0x08)               ' 7
Const SCANKEY_8 = 9(0x09)               ' 8
Const SCANKEY_9 = 10(0x0A)             ' 9
Const SCANKEY_0 = 11(0x0B)             ' 0
Const SCANKEY_MINUS = 12(0x0C)        ' -
Const SCANKEY_EQUAL = 13(0x0D)        ' =
Const SCANKEY_BS = 14(0x0E)           ' ←

Const SCANKEY_TAB = 15((0x0F)          'TAB
Const SCANKEY_Q = 16(0x10)            ' Q
Const SCANKEY_W = 17(0x11)            ' W
Const SCANKEY_E = 18(0x12)            ' E
Const SCANKEY_R = 19(0x13)            ' R
Const SCANKEY_T = 20(0x14)            ' T
Const SCANKEY_Y = 21(0x15)            ' Y
Const SCANKEY_U = 22(0x16)            ' U
Const SCANKEY_I = 23(0x17)            ' I
Const SCANKEY_O = 24(0x18)            ' O
Const SCANKEY_P = 25(0x19)            ' P
Const SCANKEY_SQUARE_OPEN = 26(0x1A)  ' [
Const SCANKEY_SQUARE_CLOSE = 27(0x1B) ' ]
Const SCANKEY_ENTER = 28(0x1C)        ' ENTER

Const SCANKEY_CTRL = 29(0x1D)         ' CTRL
Const SCANKEY_A = 30(0x1E)            ' A
Const SCANKEY_S = 31(0x1F)            ' S
Const SCANKEY_D = 32(0x20)            ' D
Const SCANKEY_F = 33(0x21)            ' F
Const SCANKEY_G = 34(0x22)            ' G
Const SCANKEY_H = 35(0x23)            ' H
Const SCANKEY_J = 36(0x24)            ' J
Const SCANKEY_K = 37(0x25)            ' K
Const SCANKEY_L = 38(0x26)            ' L
Const SCANKEY_SEMICOLON = 39(0x27)    ' ;
Const SCANKEY_QUOTATION = 40(0x28)    ' '

Const SCANKEY_QUOTATION2 = 41(0x29)   ' `
Const SCANKEY_LSHIFT = 42(0x2A)       ' LEFT SHIFT
Const SCANKEY_WON = 43(0x2B)          ' \

Const SCANKEY_Z = 44(0x2C)            ' Z
Const SCANKEY_X = 45(0x2D)            ' X
Const SCANKEY_C = 46(0x2E)            ' C
Const SCANKEY_V = 47(0x2F)            ' V
Const SCANKEY_B = 48(0x30)            ' B
Const SCANKEY_N = 49(0x31)            ' N
Const SCANKEY_M = 50(0x32)            ' M
Const SCANKEY_COMMA = 51(0x33)        ' ,
Const SCANKEY_PERIOD = 52(0x34)       ' .
Const SCANKEY_SLASH = 53(0x35)        ' /
Const SCANKEY_RSHIFT = 54(0x36)       ' RIGHT SHIFT

Const SCANKEY_PRTSC = 55(0x37)        ' PRINT SCREEN SYS RQ
Const SCANKEY_ALT = 56(0x38)          ' ALT
Const SCANKEY_SPACE = 57(0x39)        ' SPACE
Const SCANKEY_CAPS = 58(0x3A)         ' CAPS
Const SCANKEY_F1 = 59(0x3B)           ' F1
Const SCANKEY_F2 = 60(0x3C)           ' F2
Const SCANKEY_F3 = 61(0x3D)           ' F3
Const SCANKEY_F4 = 62(0x3E)           ' F4
Const SCANKEY_F5 = 63(0x3F)           ' F5
Const SCANKEY_F6 = 64(0x40)           ' F6
Const SCANKEY_F7 = 65(0x41)           ' F7
Const SCANKEY_F8 = 66(0x42)           ' F8
Const SCANKEY_F9 = 67(0x43)           ' F9
Const SCANKEY_F10 = 68(0x44)          ' F10
Const SCANKEY_NUM = 69(0x45)          ' NUM ROCK
Const SCANKEY_SCROLL = 70(0x46)       ' SCROLL ROCK

Const SCANKEY_GRAY_HOME = 71(0x47)    ' 키패드
Const SCANKEY_GRAY_UP = 72(0x48)
Const SCANKEY_GRAY_PGUP = 73(0x49)
Const SCANKEY_GRAY_MINUS = 74(0x4A)
Const SCANKEY_GRAY_LEFT = 75(0x4B)
Const SCANKEY_GRAY_CENTER = 76(0x4C)
Const SCANKEY_GRAY_RIGHT = 77(0x4D)
Const SCANKEY_GRAY_PLUS = 78(0x4E)
Const SCANKEY_GRAY_END = 79(0x4F)
Const SCANKEY_GRAY_DOWN = 80(0x50)
Const SCANKEY_GRAY_PGDN = 81(0x51)
Const SCANKEY_GRAY_INS = 82(0x52)
Const SCANKEY_GRAY_DEL = 83(0x53)

Const SCANKEY_F11 = 87(0x54)          ' F11
Const SCANKEY_F12 = 88(0x55)          ' F12





'Windows > Device Driver' 카테고리의 다른 글

어플리케이션과 드라이버간의 통신 방법 - DeviceIoControl()  (0) 2009.06.09
시스템 장치별 CLASS GUID  (0) 2009.02.17
DDK 다운로드, Windbg 사용...  (2) 2008.11.04
DriverEntry()  (0) 2008.09.04
DEVICE_OBJECT  (0) 2008.09.04