IOCTL_INTERNAL_KEYBOARD_CONNECT control code
The IOCTL_INTERNAL_KEYBOARD_CONNECT request connects the Kbdclass service to the keyboard device.
After I8042prt receives a keyboard connect request, it sends a synchronous IOCTL_INTERNAL_I8042_HOOK_KEYBOARD request to the top of keyboard device stack. The connect request is completed after the IOCTL_INTERNAL_I8042_HOOK_KEYBOARD request is completed.
Parameters.DeviceIoControl.Type3InputBuffer points to a CONNECT_DATA (Kbdclass) structure. This structure includes a pointer to a device object and a pointer to a class service callback routine. The connect data is set by Kbdclass and can be filtered (reset) by a filter driver below Kbdclass in the device stack.
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.