SHSetAppKeyWndAssoc
This function assigns a window to receive a particular hardware button's key-press messages.
BOOL SHSetAppKeyWndAssoc(
BYTE bVk,
HWND hwnd
);
Parameters
- bVk
The key code for the hardware button. - hwnd
The window handle of the window to which to assign.
Return Values
TRUE indicates success.
Remarks
The bVk values are virtual key codes. Use VK_APP1 through VK_APP6.
The number of hardware keys available and physical key locations vary according to the destination device.
Requirements
Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later
Header: aygshell.h
Library: aygshell.lib
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.