Share via


PARTENTRY (Compact 2013)

3/26/2014

This structure is a single partition entry in the on-disk partition table that is part of the master boot record (MBR). One PARTENTRY structure exists for each partition, one of which can be an extended partition. The MBR can contain up to 4 PARTENTRY structures.

Syntax

typedef struct _PARTENTRY { 
  BYTE Part_BootInd;
  BYTE Part_FirstHead;
  BYTE Part_FirstSector;
  BYTE Part_FirstTrack;
  BYTE Part_FileSystem;
  BYTE Part_LastHead; 
  BYTE Part_LastSector;
  BYTE Part_LastTrack;
  DWORD Part_StartSector;
  DWORD Part_TotalSectors;
} PARTENTRY;

Members

  • Part_BootInd
    Boot partition. The following table shows the possible values.

    Value

    Description

    PART_IND_ACTIVE

    Partition is an active partition.

    PART_IND_READ_ONLY

    Partition is a read-only partition.

    PART_IND_HIDDEN

    Partition is a hidden partition.

  • Part_FirstHead
    Partition starting head.
  • Part_FirstSector
    Partition starting sector.
  • Part_FirstTrack
    Partition starting track.
  • Part_FileSystem
    Partition type signature field. The following table shows possible values.

    Value

    Description

    PART_BINARY

    Raw binary data.

    PART_BINFS

    BinFS partition.

    PART_BOOTSECTION

    Partition that contains the alternate loader for IMGFS.

    PART_CE_HIDDEN

    Hidden partition.

    PART_DOS2_FAT

    Legitimate DOS partition.

    PART_DOS3_FAT

    Legitimate DOS partition.

    PART_DOS32

    Legitimate FAT32 DOS partition.

    PART_DOS32X13

    Same as 0x0B only "use LBA".

    PART_DOS4_FAT

    Legitimate DOS partition.

    PART_DOSX13

    Same as 0x06 only "use LBA".

    PART_DOSX13X

    Same as 0x05 only "use LBA".

    PART_EXTENDED

    Extended partition.

    PART_IMGFS

    IMGFS file system.

    PART_RAMIMAGE

    XIP RAM image.

    PART_ROMIMAGE

    XIP ROM image. This value is the same as PART_XIP.

    PART_UNKNOWN

    Unknown partition type.

    PART_XIP

    XIP ROM image.

  • Part_LastHead
    Partition ending head.
  • Part_LastSector
    Partition ending sector.
  • Part_LastTrack
    Partition ending track.
  • Part_StartSector
    Logical starting sector.
  • Part_TotalSectors
    Total logical sectors in the partition.

Requirements

Header

bootpart.h

See Also

Reference

Bootpart Structures
Bootpart Functions
GetPartitionInfo