Compartir a través de


FormatStore (Windows CE 5.0)

Send Feedback

This function performs the equivalent of a clean format of the storage volume. This removes all partition information in the store.

BOOL WINAPI FormatStore(HANDLE hStore);

Parameters

  • hStore
    [in] Handle to the store returned from OpenStore.

Return Values

Returns TRUE if successful, otherwise FALSE.

Remarks

FormatStore writes a new Master Boot Record to sector zero of the storage device, which effectively deletes all existing partitions. However, FormatStore does not actually write a file system format; to write a file system format, such as FATFS, call FormatVolume.

Requirements

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

See Also

OpenStore | Storage Manager Functions | Partitioning a Storage Volume

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.