IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-usbioctl-ioctl_usb_get_descriptor_from_node_connection)

IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION IOCTL

Description

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

Parameters

Major code

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.

Output buffer length

Input/output buffer

Input/output buffer length

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.

See also

USB_DESCRIPTOR_REQUEST GUID_DEVINTERFACE_USB_HUB