Intermec cn2a User Guide

Page of 174
Appendix C — Remapping the CN2A Keypad
142
CN2A Mobile Computer User’s Manual
Specifying a Key Sequence to Launch an Application
Windows CE .NET offers built-in application launching 
capabilities, which can be invoked with the sequence 5B 00 Cx 
00, where x is 1-F for application 1-15. 
As shown in the sample numeric keypad registry settings on page 
143, pressing the Green 
 key and 1 launches APP 1: 
"FkeyMeta23" = hex:5B,00,C1,00
You need to add a registry setting that tells the operating system 
which application to launch when you press this key sequence. 
For example:
[HKEY_LOCAL_MACHINE\Software\microsoft\shell\keys\40C1]
"Application"=REG_SZ: "MyApplication.exe"
"Path"=REG_SZ:"\Programs\MyGames"
"Flags"=REG_SZ:"map=Jupiter,lives=3,difficulty=5"
where:
Application contains the name of the application to launch.
Path
contains the path to the application.
Flags
contains application-specific parameters to pass to 
ShellExecuteEx through the lpParameters member 
of the SHELLEXECUTEINFO structure.
Do not read or write directly to these registry subkeys. Instead, 
use SHGetAppKeyAssoc and SHSetAppKeyWndAssoc to set the 
navigational control keys. The following table shows the values 
for the virtual key codes that correspond to the navigational 
control keys. 
Virtual Key Codes for Navigational Keys
VK Code
Value
VK_APP1
0xC1
VK_APP2
0xC2
VK_APP3
0xC3
VK_APP4
0xC4
VK_APP5
0xC5
VK_APP6
0xC6