[StructLayout(LayoutKind.Sequential)]
public struct PARTITION_INFORMATION_EX
{
public PartitionStyle PartitionStyle;
public long StartingOffset;
public long PartitionLength;
public int PartitionNumber;
public bool RewritePartition;
public PARTITION_INFORMATION_UNION DriveLayoutInformaiton;
}
Structure PARTITION_INFORMATION_EX
Public TODO
End Structure
public enum PartitionStyle : int
{
MasterBootRecord = 0,
GuidPartitionTable = 1,
Raw = 2
}
[StructLayout(LayoutKind.Explicit)]
public struct PARTITION_INFORMATION_UNION
{
[FieldOffset(0)]
public PARTITION_INFORMATION_MBR Mbr;
[FieldOffset(0)]
public PARTITION_INFORMATION_GPT Gpt;
}
None.