// usbioctl.h
typedef enum _USB_CONNECTION_STATUS {
NoDeviceConnected,
DeviceConnected,
DeviceFailedEnumeration,
DeviceGeneralFailure,
DeviceCausedOvercurrent,
DeviceNotEnoughPower,
DeviceNotEnoughBandwidth,
DeviceHubNestedTooDeeply,
DeviceInLegacyHub,
DeviceEnumerating,
DeviceReset
} USB_CONNECTION_STATUS, *PUSB_CONNECTION_STATUS;
View the official Windows Driver Kit DDI referenceNo description available.
The USB_CONNECTION_STATUS enumerator indicates the status of the connection to a device on a USB hub port.
NoDeviceConnectedIndicates that there is no device connected to the port.
DeviceConnectedIndicates that a device was successfully connected to the port.
DeviceFailedEnumerationIndicates that an attempt was made to connect a device to the port, but the enumeration of the device failed.
DeviceGeneralFailureIndicates that an attempt was made to connect a device to the port, but the connection failed for unspecified reasons.
DeviceCausedOvercurrentIndicates that an attempt was made to connect a device to the port, but the attempt failed because of an overcurrent condition.
DeviceNotEnoughPowerIndicates that an attempt was made to connect a device to the port, but there was not enough power to drive the device, and the connection failed.
DeviceNotEnoughBandwidthIndicates that an attempt was made to connect a device to the port, but there was not enough bandwidth available for the device to function properly, and the connection failed.
DeviceHubNestedTooDeeplyIndicates that an attempt was made to connect a device to the port, but the nesting of USB hubs was too deep, so the connection failed.
DeviceInLegacyHubIndicates that an attempt was made to connect a device to the port of an unsupported legacy hub, and the connection failed.
DeviceEnumeratingIndicates that a device connected to the port is currently being enumerated.
Note This constant is supported in Windows Vista and later operating systems.
DeviceResetIndicates that device connected to the port is currently being reset.
Note This constant is supported in Windows Vista and later operating systems.
The USB bus driver reports connection status in a USB_NODE_CONNECTION_INFORMATION_EX structure in response to an IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX request.
IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX
USB Constants and Enumerations
USB_NODE_CONNECTION_INFORMATION_EX