Virtual Key Codes Table

The following table shows the symbolic constant names, hexadecimal values, and keyboard equivalents for the virtual-key codes used by Windows Embedded Handheld 6.5. The codes are listed in numeric order.

Note: To use these codes in the VKMapping section, the hexadecimal values need to be converted to decimals.

Symbolic Constant Name

Decimal Value

Hexadecimal

Touch Screen or Keyboard Equivalent

Value

 

 

 

 

 

 

 

 

 

 

 

VK_LBUTTON

1

01

Touch screen

 

 

 

 

VK_CANCEL

3

03

Control-break processing

 

 

 

 

——

5-7

05-07

Undefined

 

 

 

 

VK_BACK

8

08

BACKSPACE key

 

 

 

 

VK_TAB

9

09

TAB key

 

 

 

 

——

10-11

0A-0B

Undefined

 

 

 

 

VK_CLEAR

12

0C

CLEAR key

 

 

 

 

VK_RETURN

13

0D

ENTER key

 

 

 

 

——

14-15

0E-0F

Undefined

 

 

 

 

VK_SHIFT

16

10

SHIFT key

 

 

 

 

VK_CONTROL

17

11

CTRL key

 

 

 

 

VK_MENU

18

12

ALT key

 

 

 

 

VK_CAPITAL

20

14

CAPS LOCK key

 

 

 

 

——

21-25

15-19

Reserved for Kanji systems

 

 

 

 

——

26

1A

Undefined

 

 

 

 

VK_CLEAR

12

0C

CLEAR key

 

 

 

 

VK_RETURN

13

0D

ENTER key

 

 

 

 

——

14-15

0E-0F

Undefined

 

 

 

 

VK_SHIFT

16

10

SHIFT key

 

 

 

 

VK_CONTROL

17

11

CTRL key

 

 

 

 

VK_MENU

18

12

ALT key

 

 

 

 

VK_CAPITAL

20

14

CAPS LOCK key

 

 

 

 

——

21-25

15-19

Reserved for Kanji systems

 

 

 

 

——

26

1A

Undefined

 

 

 

 

VK_ESCAPE

27

1B

ESC key

 

 

 

 

——

28-31

1C-1F

Reserved for Kanji systems

 

 

 

 

VK_SPACE

32

20

SPACEBAR key

 

 

 

 

VK_PRIOR

33

21

PAGE UP key

 

 

 

 

10 - 8