PD_CreatePartition (Windows Embedded CE 6.0)
1/6/2010
This function creates a partition on the store volume.
Syntax
DWORD PD_CreatePartition(
DWORD dwStoreId,
LPCTSTR szPartName,
BYTE bPartType,
SECTORNUM numSectors,
BOOL bAuto
);
Parameters
- dwStoreId
[in] Handle returned by the PD_OpenStore function.
- szPartName
[in] Name of the new partition to create.
bPartType
[in] Partition type or identifier. A partition format can support only 256 different partition types. There is no one-to-one correspondence between this identifier and the types of file systems supported. The number of file systems is lower because multiple partition types can map to the same file system, and some partition types have no associated file system.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
Partition type is invalid or not used.
PART_UNKNOWN
Partition type is unknown.
- numSectors
[in] 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 can generate the appropriate partition type for the default file system type that it supports. In the case of FAT, it selects a partition type, based on the number of sectors in this partition, FAT12, FAT16 or FAT32.
Return Value
TRUE indicates success. FALSE indicates failure.
Requirements
Header | partdrv.h |
Windows Embedded CE | Windows CE .NET 4.0 and later |