2011-03-03 18:34:33 +00:00
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace FileSystemIDandChk.PartPlugins
|
|
|
|
|
{
|
2014-04-14 01:14:20 +00:00
|
|
|
public abstract class PartPlugin
|
|
|
|
|
{
|
|
|
|
|
public string Name;
|
2011-03-03 18:34:33 +00:00
|
|
|
public Guid PluginUUID;
|
2014-04-14 01:14:20 +00:00
|
|
|
|
|
|
|
|
protected PartPlugin()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public abstract bool GetInformation(ImagePlugins.ImagePlugin imagePlugin, out List<Partition> partitions);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public struct Partition
|
|
|
|
|
{
|
|
|
|
|
public ulong PartitionSequence;
|
|
|
|
|
// Partition number, 0-started
|
|
|
|
|
public string PartitionType;
|
|
|
|
|
// Partition type
|
|
|
|
|
public string PartitionName;
|
|
|
|
|
// Partition name (if the scheme supports it)
|
|
|
|
|
public ulong PartitionStart;
|
|
|
|
|
// Start of the partition, in bytes
|
|
|
|
|
public ulong PartitionStartSector;
|
|
|
|
|
// LBA of partition start
|
|
|
|
|
public ulong PartitionLength;
|
|
|
|
|
// Length in bytes of the partition
|
|
|
|
|
public ulong PartitionSectors;
|
|
|
|
|
// Length in sectors of the partition
|
|
|
|
|
public string PartitionDescription;
|
|
|
|
|
// Information that does not find space in this struct
|
|
|
|
|
}
|
2011-03-03 18:34:33 +00:00
|
|
|
}
|