IOCTL_INTERNAL_MOUSE_CONNECT IOCTL

The IOCTL_INTERNAL_MOUSE_CONNECT request connects Mouclass service to a mouse device. Mouclass sends this request down the device stack before it opens a mouse device.

After Moufiltr receives the mouse connect request, it filters the request in the following way:

  1. Saves a copy of the CONNECT_DATA (Mouclass) structure that was passed to Moufiltr

  2. Substitutes its own connect information for the class driver connect information

  3. Sends the IOCTL_INTERNAL_MOUSE_CONNECT request down the device stack

If the request is not successful, Moufiltr completes the request with an appropriate error status.

Moufiltr provides a template for a filter service callback routine that can supplement the operation of MouseClassServiceCallback, the Mouclass service callback routine. The filter service callback can filter the input data that is transferred from the device input buffer to the class driver data queue.

For more information about the connection of the Mouclass service, see the following topics:

I8042prt Callback Routines

Moufiltr Callback Routines

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

The Parameters.DeviceIoControl.Type3InputBuffer member points to a CONNECT_DATA structure that is allocated and set by Mouclass.

Input Buffer Length

The Parameters.DeviceIoControl.InputBufferLength member is set to a value greater than or equal to the size, in bytes, of a CONNECT_DATA structure.

Output Buffer

The Parameters.DeviceIoControl.Type3InputBuffer member points to a CONNECT_DATA structure that is set by Moufiltr.

Output Buffer Length

The size of a CONNECT_DATA structure.

Status Block

The Information member is set to zero.

The Status member is set to one of the following values:

Requirements

   
Header kbdmou.h (include Kbdmou.h)

See Also

CONNECT_DATA (Mouclass)

MouseClassServiceCallback