Added support for ATA commands using Windows 2000/XP undocumented

IOCTL that predates Windows 2003 documented one.
This commit is contained in:
2017-09-10 23:20:59 +01:00
parent d60060d266
commit fe1c3e13b4
5 changed files with 185 additions and 1 deletions

View File

@@ -194,5 +194,23 @@ namespace DiscImageChef.Devices.Windows
public uint RawPropertiesLength;
public byte[] RawDeviceProperties;
}
[StructLayout(LayoutKind.Sequential)]
struct IdePassThroughDirect
{
/// <summary>
/// ATA registers
/// </summary>
public AtaTaskFile CurrentTaskFile;
/// <summary>
/// Size of data buffer
/// </summary>
public uint DataBufferSize;
/// <summary>
/// Data buffer
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)]
public byte[] DataBuffer;
}
}