mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added support for "list-devices" command on Windows.
This commit is contained in:
@@ -64,6 +64,7 @@ namespace DiscImageChef.Devices.Windows
|
||||
public byte[] SenseBuf;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct AtaPassThroughDirect
|
||||
{
|
||||
/// <summary>
|
||||
@@ -145,5 +146,43 @@ namespace DiscImageChef.Devices.Windows
|
||||
[FieldOffset(7)]
|
||||
public byte Reserved;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct StoragePropertyQuery
|
||||
{
|
||||
[MarshalAs(UnmanagedType.U4)]
|
||||
public StoragePropertyId PropertyId;
|
||||
[MarshalAs(UnmanagedType.U4)]
|
||||
public StorageQueryType QueryType;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)]
|
||||
public byte[] AdditionalParameters;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct StorageDescriptorHeader
|
||||
{
|
||||
public uint Version;
|
||||
public uint Size;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct StorageDeviceDescriptor
|
||||
{
|
||||
public uint Version;
|
||||
public uint Size;
|
||||
public byte DeviceType;
|
||||
public byte DeviceTypeModifier;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool RemovableMedia;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool CommandQueueing;
|
||||
public uint VendorIdOffset;
|
||||
public uint ProductIdOffset;
|
||||
public uint ProductRevisionOffset;
|
||||
public uint SerialNumberOffset;
|
||||
public StorageBusType BusType;
|
||||
public uint RawPropertiesLength;
|
||||
public byte[] RawDeviceProperties;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user