Added code to retrieve USB IDs and strings for Windows.

This commit is contained in:
2017-12-06 19:30:03 +00:00
parent df076b5e0f
commit be52156170
7 changed files with 1686 additions and 1 deletions

View File

@@ -238,5 +238,22 @@ namespace DiscImageChef.Devices.Windows
public uint flags;
private IntPtr reserved;
}
[StructLayout(LayoutKind.Sequential)]
struct USB_SETUP_PACKET
{
public byte bmRequest;
public byte bRequest;
public short wValue;
public short wIndex;
public short wLength;
}
[StructLayout(LayoutKind.Sequential)]
struct USB_DESCRIPTOR_REQUEST
{
public int ConnectionIndex;
public USB_SETUP_PACKET SetupPacket;
//public byte[] Data;
}
}