Compartilhar via


PFN_KEYBD_EVENT_CALLBACK (Windows CE 5.0)

Send Feedback

This function is a prototype of the callback function passed to the PFN_KEYBD_DRIVER_INITIALIZE function.

typedef BOOL (*PFN_KEYBD_EVENT_CALLBACK)(
  UINT32 VirtualKey,KEY_STATE_FLAGS KeyEvent);

Parameters

  • VirtualKey
    [in] Virtual-key code or event code. For more information on the VirtualKey layout, see %_WINCEROOT%\Public\Common\OAK\Inc\Keybddr.h.
  • KeyEvent
    [in] KeyStateDownFlag flag that is set or cleared.

Return Values

None.

Remarks

This function is deprecated. The keyboard driver does not implement this function.

This is the prototype of this function passed into the driver by the Graphics, Windowing, and Events Subsystem (GWES) when it calls the PFN_KEYBD_DRIVER_INITIALIZE function. The driver calls the callback function whenever there is a keyboard event.

The KeyStateDownFlag**field in the KeyEvent parameter is set for a key-down event and clear for a key-up event. All other bits in KeyEvent must be zero. The VirtualKey parameter has more than just the virtual-key code information. When a keyboard is connected or disconnected, the appropriate connect-event code or disconnect-event code set in the VirtualKey parameter must signal an event.

In keyboard drivers that do not conform to Layout Manager, this API also passes key codes to the model device driver (MDD). For information about controlling key click with the VirtualKey parameter, see Keybddr.h.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Keybddr.h.
Link Library: LayoutManager.lib.

See Also

Shell and User Interface | PFN_KEYBD_DRIVER_INITIALIZE | PFN_KEYBD_EVENT_CALLBACK_EX

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.