KeybdEventCallback
This function is a prototype of the callback function passed to the KeybdDriverInitialize function.
void KeybdEventCallback(
UINT32 VirtualKey,
KEY_STATE_FLAGS KeyEvent );
Parameters
- VirtualKey
Specifies code for the virtual key or event. - KeyEvent
Specifies the KeyStateDownFlag being 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 KeybdDriverInitialize 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 must be 0. The VirtualKey parameter 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 VirtualKey parameter.
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
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.