Corrected kernel32.dll entry points.

This commit is contained in:
2017-08-21 04:28:26 +01:00
parent ac84a5f1e6
commit ca408875f2

View File

@@ -50,7 +50,7 @@ namespace DiscImageChef.Devices.Windows
[MarshalAs(UnmanagedType.U4)] FileAttributes flagsAndAttributes, [MarshalAs(UnmanagedType.U4)] FileAttributes flagsAndAttributes,
IntPtr templateFile); IntPtr templateFile);
[DllImport("Kernel32.dll", SetLastError = true, EntryPoint = "ioctl", CharSet = CharSet.Auto)] [DllImport("Kernel32.dll", SetLastError = true, EntryPoint = "DeviceIoControl", CharSet = CharSet.Auto)]
internal static extern bool DeviceIoControlScsi( internal static extern bool DeviceIoControlScsi(
SafeFileHandle hDevice, SafeFileHandle hDevice,
WindowsIoctl IoControlCode, WindowsIoctl IoControlCode,
@@ -62,7 +62,7 @@ namespace DiscImageChef.Devices.Windows
IntPtr Overlapped IntPtr Overlapped
); );
[DllImport("Kernel32.dll", SetLastError = true, EntryPoint = "ioctl", CharSet = CharSet.Auto)] [DllImport("Kernel32.dll", SetLastError = true, EntryPoint = "DeviceIoControl", CharSet = CharSet.Auto)]
internal static extern bool DeviceIoControlAta( internal static extern bool DeviceIoControlAta(
SafeFileHandle hDevice, SafeFileHandle hDevice,
WindowsIoctl IoControlCode, WindowsIoctl IoControlCode,