Compartilhar via


FormatPartition (Windows CE 5.0)

Send Feedback

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

BOOL WINAPI FormatPartition(HANDLE hPartition);

Parameters

  • hPartition
    [in] Handle to the partition returned from OpenPartition.

Return Values

Returns TRUE if successful, otherwise FALSE.

Remarks

FormatPartition erases sector zero of a specified partition; it does not actually write a file system format such as FATFS. To write a file system format, call FormatVolume.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Storemgr.h
Link Library: Storeapi.lib

See Also

OpenPartition | Storage Manager Functions | Partitioning a Storage Volume

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.