IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION IOCTL

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

   
Header usbioctl.h (include Usbioctl.h)

See Also

USB_DESCRIPTOR_REQUEST