Edit

Share via


USB_STRING_DESCRIPTOR structure (usbspec.h)

The USB_STRING_DESCRIPTOR structure is used by USB client drivers to hold a USB-defined string descriptor. The members of this structure are described in the Universal Serial Bus 3.1 Specification available at USB Document Library. See section 9.6.9.

Syntax

typedef struct _USB_STRING_DESCRIPTOR {
  UCHAR bLength;
  UCHAR bDescriptorType;
  WCHAR bString[1];
} USB_STRING_DESCRIPTOR, *PUSB_STRING_DESCRIPTOR;

Members

bLength

Specifies the length, in bytes, of the descriptor.

bDescriptorType

Specifies the descriptor type. Must always be USB_STRING_DESCRIPTOR_TYPE.

bString[1]

Pointer to a client-allocated buffer that contains, on return from the host controller driver, a Unicode string with the requested string descriptor.

Remarks

This structure is used to hold a device, configuration, interface, class, vendor, endpoint, or device string descriptor. The string descriptor provides a human-readable description of the component.

Strings returned in bString are in Unicode format and the contents of the strings are device-defined.

Requirements

Requirement Value
Header usbspec.h (include Usbioctl.h)

See also

USB Structures

UsbBuildGetDescriptorRequest

_URB_CONTROL_DESCRIPTOR_REQUEST