private void PrintPartitionInformation(Kernel32.PARTITION_INFORMATION partitionInformation) { Console.WriteLine("\nPARTITION_INFORMATION:"); Console.WriteLine("StartingOffset:\t\t{0:N0}", partitionInformation.StartingOffset); Console.WriteLine("PartitionLength:\t{0:N0}", partitionInformation.PartitionLength); Console.WriteLine("HiddenSectors:\t\t{0:N0}", partitionInformation.HiddenSectors); Console.WriteLine("PartitionNumber:\t{0}", partitionInformation.PartitionNumber); Console.WriteLine("PartitionType:\t\t0x{0:X2} ({1})", partitionInformation.PartitionType, LogicalDisk.GetPartitionTypeString(partitionInformation.PartitionType)); Console.WriteLine("BootIndicator:\t\t{0}", partitionInformation.BootIndicator); Console.WriteLine("RecognizedPartition:\t{0}", partitionInformation.RecognizedPartition); Console.WriteLine("RewritePartition:\t{0}", partitionInformation.RewritePartition); }