mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added code to retrieve USB IDs and strings for Windows.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user