Added code to retrieve USB binary descriptors for Windows.

This commit is contained in:
2017-12-06 20:38:10 +00:00
parent be52156170
commit d660ec93d1
2 changed files with 29 additions and 1 deletions

View File

@@ -353,7 +353,7 @@ namespace DiscImageChef.Devices
if(usbDevice != null)
{
// TODO: Get binary descriptors
usbDescriptors = usbDevice.BinaryDescriptors;
usbVendor = (ushort)usbDevice.DeviceDescriptor.idVendor;
usbProduct = (ushort)usbDevice.DeviceDescriptor.idProduct;
usbManufacturerString = usbDevice.Manufacturer;