Share via


FormatPartitionEx

This function formats the partition with the default file system of the loaded partition driver.

BOOL WINAPI FormatPartitionEx(
  HANDLE hPartition,
  BYTE bPartType,
  BOOL bAuto
);

Parameters

  • hPartition
    [in] Handle to the partition returned from OpenPartition.
  • bPartType
    [in] Partition type.
  • 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

Returns TRUE if successful, otherwise FALSE.

Requirements

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

See Also

OpenPartition

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.