IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION IOCTL (usbioctl.h)

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

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

The AssociatedIrp.SystemBuffer member points to a USB_DESCRIPTOR_REQUEST structure that describes the descriptor request.

Input buffer length

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.

Output buffer

The Data member of the USB_DESCRIPTOR_REQUEST structure at AssociatedIrp.SystemBuffer points to the output buffer.

Status block

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.

Requirements

Requirement Value
Header usbioctl.h (include Usbioctl.h)

See also

USB_DESCRIPTOR_REQUEST GUID_DEVINTERFACE_USB_HUB