[StructLayout(LayoutKind.Sequential)]
public struct PARTITION_INFORMATION
{
public long StartingOffset;
public long PartitionLength;
public int HiddenSectors;
public int PartitionNumber;
public byte PartitionType;
[MarshalAs(UnmanagedType.I1)]
public bool BootIndicator;
[MarshalAs(UnmanagedType.I1)]
public bool RecognizedPartition;
[MarshalAs(UnmanagedType.I1)]
public bool RewritePartition;
}
<System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)> _
Public Structure PARTITION_INFORMATION
Public StartingOffset As Long
Public PartitionLength As Long
Public HiddenSectors As Integer
Public PartitionNumber As Integer
Public PartitionType As Byte
<System.Runtime.InteropServices.MarshalAs(UnmanagedType.I1)> _
Public BootIndicator As Boolean
<System.Runtime.InteropServices.MarshalAs(UnmanagedType.I1)>
Public RecognizedPartition As Boolean
<System.Runtime.InteropServices.MarshalAs(UnmanagedType.I1)>
Public RewritePartition As Boolean
End Structure
None.
None.