MouFilter_ServiceCallback routine

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

Syntax

VOID MouFilter_ServiceCallback(
  _In_    PDEVICE_OBJECT    DeviceObject,
  _In_    PMOUSE_INPUT_DATA InputDataStart,
  _In_    PMOUSE_INPUT_DATA InputDataEnd,
  _Inout_ PULONG            InputDataConsumed
);

Parameters

  • DeviceObject [in]
    Pointer to the class device object.

  • InputDataStart [in]
    Pointer to the first mouse input data packet in the input data buffer of the port device.

  • InputDataEnd [in]
    Pointer to the mouse input data packet immediately following the last data packet in the port device's input data buffer.

  • InputDataConsumed [in, out]
    Pointer to the number of mouse input data packets that are transferred by the routine.

Return value

None

Remarks

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.

Requirements

Target platform

Header

Moufiltr.h (include Moufiltr.h)

IRQL

DISPATCH_LEVEL

See also

MouseClassServiceCallback

MOUSE_INPUT_DATA

 

 

Send comments about this topic to Microsoft