Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UsbDeviceDescriptor class

Applies to Windows only

Derives information from the USB device descriptor of the device. For an explanation of the device descriptor, see Table 9.8 in the Universal Serial Bus Specification.

Syntax


var usbDeviceDescriptor = Windows.Devices.Usb.UsbDevice.DeviceDescriptor;

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The UsbDeviceDescriptor class has these types of members:

Properties

The UsbDeviceDescriptor class has these properties.

PropertyAccess typeDescription

BcdDeviceRevision

Read-onlyGets the bcdDeviceRevision field of the USB device descriptor. The value indicates the revision number defined by the device and is a binary-coded decimal number.

BcdUsb

Read-onlyGets the bcdUSB field of the USB device descriptor. The value indicates the version of the USB specification to which the device conforms.

MaxPacketSize0

Read-onlyGets the bMaxPacketSize0 field of the USB device descriptor. The value indicates the maximum packet size, in bytes, for endpoint zero of the device. This value can be 8, 16, 32, or 64.

NumberOfConfigurations

Read-onlyGets the bNumConfigurations field of the USB device descriptor. The value indicates the total count of USB configurations supported by the device.

ProductId

Read-onlyGets the idProduct field of the USB device descriptor. This value indicates the device-specific product identifier and is assigned by the manufacturer.

VendorId

Read-onlyGets the idVendor field of the USB device descriptor. The value indicates the vendor identifier for the device as assigned by the USB specification committee.

 

Remarks

The UsbDeviceDescriptor class does not include manufacturer, product, and serial number strings that are included in a device-defined descriptor. You can obtain those strings by using the Windows.Devices.Enumeration namespace. For information about a USB device descriptor, see the top portion of this topic: USB device descriptors.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft. All rights reserved.