Previous Next

IOCTL_INTERNAL_MOUSE_CONNECT

Operation

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.

For more information, see Connect a Class Service Callback and a Filter Service Callback to a Device.

Input

The 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.

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

Output

None.

I/O 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.

Headers

Defined in kbdmou.h. Include kbdmou.h.

See Also

CONNECT_DATA (Mouclass), IOCTL_INTERNAL_I8042_HOOK_MOUSE