* DiscImageChef.Devices/Command.cs:

Add skeleton for send SCSI command method.

	* DiscImageChef.Devices/Linux/Command.cs:
	* DiscImageChef.Devices/Windows/Command.cs:
	  Added per-platform send SCSI command method.

	* DiscImageChef.sln:
	* DiscImageChef.Interop/DetectOS.cs:
	* DiscImageChef.Interop/PlatformID.cs:
	* DiscImageChef.Interop/Properties/AssemblyInfo.cs:
	* DiscImageChef.Interop/DiscImageChef.Interop.csproj:
	  Added code to detect OS.

	* DiscImageChef.Devices/DiscImageChef.Devices.csproj:
	  Added per-platform send SCSI command method.
	Add skeleton for send SCSI command method.

	* DiscImageChef.Devices/Linux/Extern.cs:
	* DiscImageChef.Devices/Windows/Extern.cs:
	  Enhanced externs.

	* DiscImageChef.Devices/Linux/Structs.cs:
	  Typo.
This commit is contained in:
2015-10-12 06:25:49 +01:00
parent 7fa4c3fbeb
commit 115bf5030f
15 changed files with 612 additions and 11 deletions

View File

@@ -17,9 +17,9 @@ namespace DiscImageChef.Devices.Windows
IntPtr templateFile);
[DllImport("Kernel32.dll", SetLastError = true, EntryPoint="ioctl", CharSet = CharSet.Auto)]
public static extern bool DeviceIoControlScsi(
internal static extern bool DeviceIoControlScsi(
SafeFileHandle hDevice,
uint IoControlCode,
WindowsIoctl IoControlCode,
ref ScsiPassThroughDirectAndSenseBuffer InBuffer,
uint nInBufferSize,
ref ScsiPassThroughDirectAndSenseBuffer OutBuffer,
@@ -29,9 +29,9 @@ namespace DiscImageChef.Devices.Windows
);
[DllImport("Kernel32.dll", SetLastError = true, EntryPoint="ioctl", CharSet = CharSet.Auto)]
public static extern bool DeviceIoControlAta(
internal static extern bool DeviceIoControlAta(
SafeFileHandle hDevice,
uint IoControlCode,
WindowsIoctl IoControlCode,
ref AtaPassThroughDirect InBuffer,
uint nInBufferSize,
ref AtaPassThroughDirect OutBuffer,
@@ -41,7 +41,7 @@ namespace DiscImageChef.Devices.Windows
);
[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool CloseHandle(SafeFileHandle hDevice);
internal static extern bool CloseHandle(SafeFileHandle hDevice);
}
}