Hi
I am porting PocketPC 2003 to hardware platform, and I am trying to make
hardware button working in my platform. To make this happen, I changed the
keyboard mapping table in keypad driver which included
VK_APP1,VK_APP2,VK_APP3,VK_APP5.
At same time I modified the registry in platform.reg, here is my registry
for app button:
; Calendar
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C1]
@=LOC_APPBTN1DEF
"Name"=LOC_APPBUTTON1
"Icon"="\\windows\\outres.dll, -10002"
"ResetCmd"=LOC_APPBTN1DEF
"Flags"=dword:0
; Contacts
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C2]
@=LOC_APPBTN2DEF
"Name"=LOC_APPBUTTON2
"Icon"="\\windows\\outres.dll, -10000"
"ResetCmd"=LOC_APPBTN2DEF
"Flags"=dword:0
; Start Menu
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C1]
"Name"=LOC_APPBUTTON1
"Icon"="\\Windows\\shell32.exe, -9"
"Flags"=dword:1
"ResetFlags"=dword:1
; Contacts
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C2]
@=LOC_APPBTN2DEF
"Name"=LOC_APPBUTTON2
"Icon"="\\windows\\outres.dll, -10000"
"ResetCmd"=LOC_APPBTN2DEF
"Flags"=dword:0
; Context Menu
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C3]
"Name"=LOC_APPBUTTON3
"Icon"="\\Windows\\shell32.exe, -11"
"Flags"=dword:B
"ResetFlags"=dword:B
; Foo button
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C4]
"Name"=LOC_APPBUTTON4
"Icon"="\\Windows\\shell32.exe, -10"
"Flags"=dword:A
"ResetFlags"=dword:A
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C5]
@=LOC_APPBTN5DEF
"Name"=LOC_APPBUTTON5
"Icon"="\\windows\\hotvoice.exe, 0"
"ResetCmd"=LOC_APPBTN5DEF
"Flags"=dword:0
Unfortunately I cannot make it work, when I press the hardware button. I
need help to fix this issue.
Thank you very much in advance
Kevin