ScanVolumeEx (Windows CE 5.0)
This function scans a volume for errors in the FAT and directories, and for lost clusters according to the options specified. Returns the results of the scan.
DWORD ScanVolumeEx(
HANDLEhVolume,PSCAN_PARAMSpsp,);
Parameters
- hVolume
[in] Handle to disk or partition. Call CreateFile to obtain a handle to the volume. - pdp
[in, out] Pointer to a SCAN_PARAMS structure. This value is used to pass in parameters, as well as receive results of the scan.
Return Values
If the function succeeds, the return value is TRUE. If it fails, the return value is FALSE.
Remarks
To obtain results of a scan, 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.
If the scan completes, this function returns the scan results through the SCAN_RESULTS structure embedded in the SCAN_PARAMS structure.
Requirements
OS Versions: Windows CE .NET 4.2 and later.
Header: Scandisk.h.
Link Library: Fatutil.dll.
See Also
CreateFile | DeviceIoControl | DISK_INFO | SCAN_PARAMS
Send Feedback on this topic to the authors