Share via


PD_CreatePartition (Windows CE 5.0)

Send Feedback

This function creates a partition on the store volume.

DWORD PD_CreatePartition(DWORD dwStoreId,LPCTSTR szPartName,BYTE bPartType, SECTORNUM numSectors, BOOL bAuto);

Parameters

  • dwStoreId
    [in] This is returned from a PD_OpenStore call.
  • szPartName
    [in] The name of the new partition to create.
  • bPartType
    [in] The partition type or identifier. The byte limitation indicates that a given partition format can only support 256 different partition types. There is not one to one correspondence between this identifier and the types of file systems supported. In actuality the number of file systems is less because multiple partition types might map to the same file system, and some partition types might have no file system associated with them but indicate something specific.
    Partition type Description
    PART_UNKNOWN Partition type is unknown.
    PART_DOS2_FAT Legitimate DOS partition.
    PART_DOS3_FAT Legitimate DOS partition.
    PART_DOS4_FAT Legitimate DOS partition.
    PART_DOS32 Legitimate DOS partition (FAT32).
    PART_DOS32X13 Same as 0x0B only "use LBA".
    PART_DOSX13 Same as 0x06 only "use LBA".
    PART_DOSX13X Same as 0x05 only "use LBA".
    INVALID Partition type is invalid or not used.
  • numSectors
    [in] This is a 64-bit number indicating the size of the partition to create. A partition driver is not required to support the full 64 bits.
  • bAuto
    [in] When this flag is set, bPartType is ignored and the partition driver is allowed to generate the appropriate partition type for the default file system type that it supports. In the case of FAT, it will select a partition type based on the number of sectors in this partition, FAT12, FAT16 or FAT32.

Return Values

TRUE if the call was successful, FALSE otherwise.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Partdrv.h.

See Also

PD_OpenStore

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.