FormatVolumeEx (Windows CE 5.0)

Send Feedback

This function formats a volume according to specified options.

DWORD FormatVolumeEx(
HANDLEhVolume,PFORMAT_PARAMSpfp,);

Parameters

  • hVolume
    [in] Handle to a disk or partition. Call CreateFile to obtain a handle to the volume.
  • pfp
    [in, out] Pointer to a FORMAT_PARAMS structure. This value is used to pass in parameters, as well as receive results of the format.

Return Values

If the function succeeds, the return value is ERROR_SUCCESS. If it fails, the return value is ERROR_GEN_FAILURE.

Remarks

For best results, use the correct type of handle. For example, if the store to be scanned is partitioned, use a handle to the partition. If the store is not partitioned, use a disk handle.

Requirements

OS Versions: Windows CE .NET 4.2 and later.

Header: Formatdisk.h.

Link Library: Fatutil.dll.

See Also

CreateFile | DeviceIoControl | DISK_INFO | FORMAT_PARAMS

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.