Implemented ATA commands for Windows.

This commit is contained in:
2017-08-21 04:30:10 +01:00
parent ca408875f2
commit cdc105c72f
2 changed files with 247 additions and 3 deletions

View File

@@ -144,7 +144,8 @@ namespace DiscImageChef.Devices
{
case Interop.PlatformID.Win32NT:
{
throw new NotImplementedException();
return Windows.Command.SendAtaCommand((SafeFileHandle)fd, registers, out errorRegisters,
protocol, ref buffer, timeout, out duration, out sense);
}
case Interop.PlatformID.Linux:
{
@@ -176,7 +177,8 @@ namespace DiscImageChef.Devices
{
case Interop.PlatformID.Win32NT:
{
throw new NotImplementedException();
return Windows.Command.SendAtaCommand((SafeFileHandle)fd, registers, out errorRegisters,
protocol, ref buffer, timeout, out duration, out sense);
}
case Interop.PlatformID.Linux:
{
@@ -208,7 +210,8 @@ namespace DiscImageChef.Devices
{
case Interop.PlatformID.Win32NT:
{
throw new NotImplementedException();
return Windows.Command.SendAtaCommand((SafeFileHandle)fd, registers, out errorRegisters,
protocol, ref buffer, timeout, out duration, out sense);
}
case Interop.PlatformID.Linux:
{