Disabling the App's shortcut keys

  • Thread starter Thread starter Thiago A.
  • Start date Start date
T

Thiago A.

HI,

How can i disable those 4 device shortcut keys on my fullscreen application?

Thanks!
 
A different approach is to change registry to point the hardware buttons to
your application. In my app.inf file, I reset the following registry keys:

HKLM,SOFTWARE\Microsoft\Shell\Keys\40C1,,0x00000000,"""\Windows\Start
Menu\Dispatch.lnk"""
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C1,ResetCmd,0x00000000,"""\Windows\Star
t Menu\Dispatch.lnk"""
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C1,Icon,0x00000000,"\dispatch\dispatch.
exe, 0"
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C2,,0x00000000,"""\Windows\Start
Menu\Dispatch.lnk"""
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C2,ResetCmd,0x00000000,"""\Windows\Star
t Menu\Dispatch.lnk"""
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C2,Icon,0x00000000,"\dispatch\dispatch.
exe, 0"
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C3,,0x00000000,"""\Windows\Start
Menu\Dispatch.lnk"""
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C3,ResetCmd,0x00000000,"""\Windows\Star
t Menu\Dispatch.lnk"""
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C3,Icon,0x00000000,"\dispatch\dispatch.
exe, 0"
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C4,,0x00000000,"""\Windows\Start
Menu\Dispatch.lnk"""
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C4,ResetCmd,0x00000000,"""\Windows\Star
t Menu\Dispatch.lnk"""
HKLM,SOFTWARE\Microsoft\Shell\Keys\40C4,Icon,0x00000000,"\dispatch\dispatch.
exe, 0"

Works like a champ on a Symbol 2800. Don't know what happens on a different
device.

HI,

How can i disable those 4 device shortcut keys on my fullscreen application?

Thanks!
 
The P/Invoke library contains an input sample that does this:

http://msdn.microsoft.com/library/en-us/dnnetcomp/html/PInvokeLib.asp

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
This posting is provided "AS IS" with no warranties, and confers no rights.
HI,

How can i disable those 4 device shortcut keys on my fullscreen application?

Thanks!
 
Back
Top