USB_STRING_DESCRIPTOR structure

The USB_STRING_DESCRIPTOR structure is used by USB client drivers to hold a USB-defined string descriptor.

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

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

Header

Usb100.h (include Usbioctl.h)

See also

UsbBuildGetDescriptorRequest
_URB_CONTROL_DESCRIPTOR_REQUEST
USB Structures

 

 

Send comments about this topic to Microsoft

Show: