Microsoft Windows CE 3.0  

KeybdEventCallback

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

void KeybdEventCallback(
UINT32
VirtualKey
,
KEY_STATE_FLAGS
KeyEvent
);

Parameters

VirtualKey
Specifies code for the virtual key or event.
KeyEvent
Specifies the KeyStateDownFlagbeing set or cleared.

Remarks

The keyboard driver does not implement this function. This is the prototype of this function passed into the driver by the user input system when it calls the KeybdDriverInitializefunction. The driver calls the callback function whenever there is a keyboard event.

The KeyStateDownFlag field in the KeyEventparameter is set for a key-down event and clear for a key-up event. All other bits must be 0. The VirtualKeyparameter has more than just the virtual key information. See the Keybddr.h header file for a description of the information in this parameter.

When a keyboard is connected or disconnected, an event must be signaled with the appropriate connect-event code or disconnect-event code set in the VirtualKeyparameter.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Keybddr.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

KeybdDriverInitialize



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.