Share via


UsbDeviceDescriptor Class

Definition

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.

public ref class UsbDeviceDescriptor sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbDeviceDescriptor final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbDeviceDescriptor
Public NotInheritable Class UsbDeviceDescriptor
Inheritance
Object Platform::Object IInspectable UsbDeviceDescriptor
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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.

Properties

BcdDeviceRevision

Gets 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

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

MaxPacketSize0

Gets 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

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

ProductId

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

VendorId

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

Applies to