How Can I Force the F6 and F7 keys to Be Sent to my Application on a Device Running Windows Mobile 2003?

Article ID: 62345618

Question

How Can I Force the F6 and F7 keys to Be Sent to my Application on a Device Running Windows Mobile 2003?

Facts

All Zebra Enterprise devices running Windows Mobile 2003

Answer

Side Effect: Other applications cannot receive any key event until GXCloseInput() is called.  For example, if you are using APP1 key to run Calc.exe.

When the F6 and F7 keys are pressed on a Pocket PC 2003 terminal, Shell.exe traps them and displays the volume adjustment window.

To get those keys to your application, call the Microsoft API’s GXOpenInput() at the beginning and GXCloseInput() at the end of the application.  This will redirect all of the key events to your applications including the F6 and F7 keys.