// usbioctl.h
// CTL_CODE(0x0022, 0x104, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION 0x00220410
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION I/O control request retrieves one or more descriptors for the device that is associated with the indicated port index.
IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION is a user-mode I/O control request. This request targets the USB hub device (GUID_DEVINTERFACE_USB_HUB).
The AssociatedIrp.SystemBuffer member points to a USB_DESCRIPTOR_REQUEST structure that describes the descriptor request.
The Parameters.DeviceIoControl.OutputBufferLength member indicates the size, in bytes, of the user-allocated output buffer in the Data member of the USB_DESCRIPTOR_REQUEST structure.
The Data member of the USB_DESCRIPTOR_REQUEST structure at AssociatedIrp.SystemBuffer points to the output buffer.
The USB stack sets Irp->IoStatus.Status to STATUS_SUCCESS if the request is successful. Otherwise, the USB stack sets Status to the appropriate error condition, such as STATUS_INVALID_PARAMETER or STATUS_INSUFFICIENT_RESOURCES.
USB_DESCRIPTOR_REQUEST GUID_DEVINTERFACE_USB_HUB