Freigeben über


SHSetAppKeyWndAssoc (Windows CE 5.0)

Send Feedback

This function assigns a window to receive a particular hardware button's key-press messages.

Syntax

BOOL SHSetAppKeyWndAssoc(  BYTE bVk,  HWND hwnd);

Parameters

  • bVk
    [in] Key code for the hardware button.
  • hwnd
    [in] Handle to the window that will receive the messages.

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.

Return Values

This function returns TRUE if it is successful and FALSE if it fails.

Requirements

Pocket PC: Pocket PC 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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.