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.
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.
Parameters.DeviceIoControl.InputBufferLength specifies the size, in bytes, of a CONNECT_DATA structure.
The Information member is set by the port driver.
The Status member is set to one of the following values:
The request completed successfully.
Parameters.DeviceIoControl.InputBufferLength is less than the size, in bytes, of a CONNECT_DATA structure.
The port driver is already connected.