DefragVolumeUI (Compact 2013)

3/26/2014

This function defragments a volume. It contains a dialog box user interface that can be displayed alone or invoked from another place such as Control Panel.

Syntax

VOID DefragVolumeUI(
  HANDLE hVolume,
  HWND hWnd
);

Parameters

  • hVolume
    [in] Handle to disk or partition. Call the CreateFile function to obtain a handle to the volume.
  • hWnd
    [in] Handle to a parent window. Can be set to NULL if there is no parent.

Return Value

None.

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

defragdisk.h

Library

Fatutil.dll

See Also

Reference

FAT Utility Library Functions
CreateFile