Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function formats the partition with the default file system of the loaded partition driver.
Syntax
BOOL WINAPI FormatPartitionEx( HANDLE hPartition, BYTE bPartType, BOOL bAuto ); |
Parameters
- hPartition
-
[in] Handle to the partition returned by the OpenPartitionfunction.
- bPartType
-
[in] Partition type.
- bAuto
-
[in] When this flag is set, bPartTypeis ignored, and the partition driver generates the appropriate partition type for the default file system type. A file allocation table (FAT) file system selects a partition type based on the number of sectors in the partition, FAT12, FAT16, or FAT32.
Return Value
TRUE indicates success. FALSE indicates failure.
Remarks
A partition must have already been created with the CreatePartitionfunction before it can be formatted using this function.
This function erases sector zero of a specified partition and updates the partition type in the master boot record. It does not write a file system format such as FATFS.
Requirements
Header | storemgr.h |
Library | Storeapi.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |