Platform SDK: Files and I/O

FindVolumeClose

The FindVolumeClose function closes the specified volume search handle. The FindFirstVolume and FindNextVolume functions use this search handle to locate volumes.

BOOL FindVolumeClose(
  HANDLE hFindVolume       // search handle
);

Parameters

hFindVolume
[in] Volume search handle to close. This handle must have been previously opened by the FindFirstVolume function.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

After the FindVolumeClose function is called, the handle hFindVolume cannot be used in subsequent calls to either FindNextVolume or FindVolumeClose.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Winbase.h; include Windows.h.
  Library: Use Kernel32.lib.

See Also

File Systems Overview, File System Functions, FindFirstVolume, FindNextVolume