FormatVolumeEx (Compact 2013)
3/26/2014
This function formats a volume.
Syntax
DWORD FormatVolumeEx(
HANDLE hVolume,
PFORMAT_PARAMS pfp,
);
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 used to pass in parameters and receive results of the the format.
Return Value
ERROR_SUCCESS indicates success. ERROR_GEN_FAILURE indicates 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
Header |
formatdisk.h |
Library |
Fatutil.dll |
See Also
Reference
FAT Utility Library Functions
CreateFile
FORMAT_PARAMS