IOCTL_INTERNAL_MOUSE_CONNECT control code

The IOCTL_INTERNAL_MOUSE_CONNECT request connects the Mouclass service to a mouse device.

After I8042prt receives a mouse connect request, it sends a synchronous IOCTL_INTERNAL_I8042_HOOK_MOUSE request to the top of mouse device stack. The connect request is completed after the IOCTL_INTERNAL_I8042_HOOK_MOUSE request is completed.

Input Buffer

Parameters.DeviceIoControl.Type3InputBuffer points to a CONNECT_DATA (Mouclass) structure. This structure includes a pointer to a device object and a pointer to a mouse class service callback routine. The connect data is set by the class service and can be filtered (reset) by filter drivers.

Input Buffer Length

Parameters.DeviceIoControl.InputBufferLength specifies the size, in bytes, of a CONNECT_DATA structure.

Output Buffer

None.

Output Buffer Length

None.

Status block

The Information member is set by the port driver.

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

STATUS_SUCCESS

The request completed successfully.

STATUS_INVALID_PARAMETER

Parameters.DeviceIoControl.InputBufferLength is less than the size, in bytes, of a CONNECT_DATA structure.

STATUS_SHARING_VIOLATION

The port driver is already connected.

Requirements

Header

Kbdmou.h (include Kbdmou.h)

See also

CONNECT_DATA (Mouclass)
IOCTL_INTERNAL_I8042_HOOK_MOUSE

 

 

Send comments about this topic to Microsoft

Show: