// usbioctl.h
typedef struct _USB_HUB_INFORMATION_EX {
USB_HUB_TYPE HubType;
USHORT HighestPortNumber;
union {
USB_HUB_DESCRIPTOR UsbHubDescriptor;
USB_30_HUB_DESCRIPTOR Usb30HubDescriptor;
} u;
} USB_HUB_INFORMATION_EX, *PUSB_HUB_INFORMATION_EX;
View the official Windows Driver Kit DDI referenceNo description available.
The USB_HUB_INFORMATION_EX structure is used with the IOCTL_USB_GET_HUB_INFORMATION_EX I/O control request to retrieve information about a Universal Serial Bus (USB) hub.
HubTypeThe type of hub: root hub, USB 2.0, or USB 3.0 hub. On successful completion of the IOCTL_USB_GET_HUB_INFORMATION_EX I/O control request, HubType contains a USB_HUB_TYPE enumerator that indicates the type of hub.
HighestPortNumberIndicates the number of ports on the hub. The ports are numbered from 1 to HighestPortNumber, where HighestPortNumber is the highest valid port number on the hub.
uu.UsbHubDescriptorIf HubType indicates a USB 2.0 hub, u.UsbHubDescriptor is a USB_HUB_DESCRIPTOR structure that contains selected information from the USB 2.0/1.1 hub descriptor, as defined in the USB 2.0 Specification.
u.Usb30HubDescriptorIf HubType indicates a USB 3.0 hub, u.UsbHub30Descriptor is a USB_30_HUB_DESCRIPTOR structure that contains selected information from the USB 3.0 hub descriptor, as defined in the USB 3.0 Specification.
IOCTL_USB_GET_HUB_INFORMATION_EX