Previous Next

MouFilter_ServiceCallback

MouFilter_ServiceCallback is a template for a filter service callback routine that supplements MouseClassServiceCallback.

VOID
  MouFilter_ServiceCallback(
    IN PDEVICE_OBJECT  DeviceObject,
    IN PMOUSE_INPUT_DATA  InputDataStart,
    IN PMOUSE_INPUT_DATA  InputDataEnd,
    IN OUT PULONG  InputDataConsumed
    );

Parameters

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

Return Value

None

Headers

Declared in moufiltr.h. Include moufiltr.h.

Comments

The ISR DPC of I8042prt calls MouFilter_ServiceCallback, which then calls MouseClassServiceCallback. A filter service callback can be configured to modify the input data that is transferred from the device's input buffer to the class data queue. For example, the callback can delete, transform, or insert data.

MouFilter_ServiceCallback runs in kernel mode at IRQL DISPATCH_LEVEL.

See Also

MouseClassServiceCallback, MOUSE_INPUT_DATA