Added code to retrieve NT device path (will be needed later).

This commit is contained in:
2017-12-06 13:46:35 +00:00
parent e3b97c123d
commit df076b5e0f
5 changed files with 227 additions and 9 deletions

View File

@@ -212,5 +212,31 @@ namespace DiscImageChef.Devices.Windows
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)]
public byte[] DataBuffer;
}
[StructLayout(LayoutKind.Sequential)]
struct StorageDeviceNumber
{
public int deviceType;
public int deviceNumber;
public int partitionNumber;
}
[StructLayout(LayoutKind.Sequential)]
struct DeviceInfoData
{
public int cbSize;
public Guid classGuid;
public uint devInst;
public IntPtr reserved;
}
[StructLayout(LayoutKind.Sequential)]
struct DeviceInterfaceData
{
public int cbSize;
public Guid interfaceClassGuid;
public uint flags;
private IntPtr reserved;
}
}