#include <stdint.h>
Classes | |
struct | tsCHS |
struct | tsMBR_Partition_Ent |
struct | tsMBR |
Enumerations | |
enum | teMBR_PartType { eeEmpty = 0x00, eeDOS_FAT12 = 0x01, eeXINIX_ROOT = 0x02, eeXINIX_USR = 0x03, eeDOS30_FAT16 = 0x04, eeDOS33_FAT16 = 0x05, eeDOS331_FAT16 = 0x06, eeNTFS = 0x07, eeWIN95_FAT32 = 0x0B, eeWIN95_FAT32_LBA = 0x0C, eeWIN95_DOS16_LBA = 0x0E, eeWIN95_EXT_LBA = 0x0F, eeLINUX_SWAP = 0x42, eeLINUX_NATIVE = 0x43, eeLINUX_SWAP1 = 0x82, eeLINUX_NATIVE1 = 0x83, eeUNKNOWN = 0x100 } |
enumerations for MBR types. More... | |
Functions | |
teMBR_PartType | GetPartitionType (tsMBR *apMBR, int PartitionNum) |
Get the Type of a Partition given a valid 512 byte MBR. | |
uint32_t | GetPartitionStart (tsMBR *apMBR, int ParitionNum) |
Get the Starting Logical Block of a partition. | |
uint32_t | GetParitionSize (tsMBR *apMBR, int ParitionNum) |
Get the size in Logical Blocks (512 byte sector) of a partition. |
enum teMBR_PartType |
enumerations for MBR types.
.. there are a bunch, but only the ones of interest are captured here...
teMBR_PartType GetPartitionType | ( | tsMBR * | apMBR, | |
int | anPartitionNum | |||
) |
Get the Type of a Partition given a valid 512 byte MBR.
[in] | apMBR | Pointer to 512 byte MBR. |
[in] | anPartitionNum | Primary partition number (0-3) |
uint32_t GetPartitionStart | ( | tsMBR * | apMBR, | |
int | anPartitionNum | |||
) |
Get the Starting Logical Block of a partition.
[in] | apMBR | Pointer to 512 byte MBR. |
[in] | anPartitionNum | Primary partition number (0-3) |
uint32_t GetParitionSize | ( | tsMBR * | apMBR, | |
int | anPartitionNum | |||
) |
Get the size in Logical Blocks (512 byte sector) of a partition.
[in] | apMBR | Pointer to 512 byte MBR. |
[in] | anPartitionNum | Primary partition number (0-3) |