// usbspec.h
typedef struct _USB_HUB_DESCRIPTOR {
UCHAR bDescriptorLength;
UCHAR bDescriptorType;
UCHAR bNumberOfPorts;
USHORT wHubCharacteristics;
UCHAR bPowerOnToPowerGood;
UCHAR bHubControlCurrent;
UCHAR bRemoveAndPowerMask[64];
} USB_HUB_DESCRIPTOR, *PUSB_HUB_DESCRIPTOR;
View the official Windows Driver Kit DDI referenceNo description available.
The USB_HUB_DESCRIPTOR structure contains a hub descriptor. The members of this structure are described in the Universal Serial Bus 3.1 Specification available at USB Document Library. See section 10.15.2.1.
bDescriptorLengthThe length, in bytes, of the descriptor.
bDescriptorTypeThe descriptor type. For hub descriptors, this value should be 0x29.
bNumberOfPortsThe number of ports on the hub.
wHubCharacteristicsThe hub characteristics. For more information about this member, see Universal Serial Bus Specification.
bPowerOnToPowerGoodThe time, in 2-millisecond intervals, that it takes the device to turn on completely. For more information about this member, see Universal Serial Bus Specification.
bHubControlCurrentThe maximum current requirements, in milliamperes, of the controller component of the hub.
bRemoveAndPowerMaskNot currently implemented. Do not use this member.
This member implements DeviceRemovable and PortPwrCtrlMask fields of the hub descriptor. For more information about these fields, see Universal Serial Bus Specification.