Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Input
Human Input Devices
Reference
 KeyboardClassServiceCallback

  Switch on low bandwidth view
Windows Driver Kit: Human Input Devices
KeyboardClassServiceCallback

The KeyboardClassServiceCallback routine is the class service callback routine that is provided by Kbdclass. A function driver calls the class service callback in its ISR dispatch completion routine. The class service callback transfers input data from the input data buffer of a device to the class data queue.

VOID
  KeyboardClassServiceCallback (
    IN PDEVICE_OBJECT  DeviceObject,
    IN PKEYBOARD_INPUT_DATA  InputDataStart,
    IN PKEYBOARD_INPUT_DATA  InputDataEnd,
    IN OUT PULONG  InputDataConsumed
    );

Parameters

DeviceObject
Pointer to the class device object.
InputDataStart
Pointer to the first keyboard input data packet in the input data buffer of the port device.
InputDataEnd
Pointer to the keyboard input data packet that immediately follows the last data packet in the input data buffer of the port device.
InputDataConsumed
Pointer to the number of keyboard input data packets that are transferred by the routine.

Return Value

None

Comments

KeyboardClassServiceCallback transfers input data from the input buffer of the device to the class data queue. This routine is called by the ISR dispatch completion routine of the function driver.

KeyboardClassServiceCallback can be supplemented by a filter service callback that is provided by an upper-level keyboard filter driver. A filter service callback filters the keyboard data that is transferred to the class data queue. For example, the filter service callback can delete, transform, or insert data. Kbfiltr, the sample filter driver in the WDK, includes KbFilter_ServiceCallback, which is a template for a keyboard filter service callback.

Requirements

IRQL: DISPATCH_LEVEL

Headers: Declared in kbdclass.h. Include kbdclass.h.

See Also

KbFilter_ServiceCallback, KEYBOARD_INPUT_DATA


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker