Partager via


PARTINFO (Windows Embedded CE 6.0)

1/6/2010

This structure contains information about a partition.

Syntax

typedef struct {
  DWORD cbSize;
  TCHAR szPartitionName[PARTITIONNAMESIZE];
  TCHAR szFileSys[FILESYSNAMESIZE];
  TCHAR szVolumeName[VOLUMENAMESIZE];
  SECTORNUM snNumSectors;
  FILETIME ftCreated;
  FILETIME ftLastModified;
  DWORD dwAttributes;
  BYTE bPartType;
} PARTINFO, *PPARTINFO;

Members

  • cbSize
    Set to sizeof(PARTINFO).
  • szPartitionName
    Name of the partition. Maximum length is 32.
  • szFileSys
    Name of the file system. Maximum length is 32.
  • szVolumeName
    Name of the volume. This is the name that the partition has when mounted. You can use the volume name to correlate the mount points with partitions and stores. Mount points are subdirectories located after a backslash (\).
  • snNumSectors
    Number of sectors in the partition.
  • ftCreated
    Creation time of the partition.
  • ftLastModified
    Last time the partition was modified.
  • dwAttributes
    Partition attributes. The following are the possible values:

    • PARTITION_ATTRIBUTE_AUTOFORMAT
    • PARTITION_ATTRIBUTE_BOOT
    • PARTITION_ATTRIBUTE_EXPENDABLE
    • PARTITION_ATTRIBUTE_MOUNTED
    • PARTITION_ATTRIBUTE_READONLY
  • bPartType
    [in] Partition type or identifier. Although this parameter is limited to 256 bytes, there are fewer supported file systems than partition types because a single file system can map to multiple partition types. Some partition types might have not have an associated file system. The following table shows possible values:

    Partition type Description

    PART_DOS2_FAT

    DOS partition.

    PART_DOS3_FAT

    DOS partition.

    PART_DOS4_FAT

    DOS partition.

    PART_DOS32

    DOS partition (FAT32).

    PART_DOS32X13

    Same as 0x0B, only use logical block addressing (LBA).

    PART_DOSX13

    Same as 0x06, only use LBA.

    PART_DOSX13X

    Same as 0x05, only use LBA.

    INVALID

    Invalid or unused partition type.

    PART_UNKNOWN

    Unknown partition type.

Requirements

Header storemgr.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Storage Manager Structures