Export (0) Print
Expand All

FindVolumeMountPointClose function

Closes the specified mounted folder search handle. The FindFirstVolumeMountPoint and FindNextVolumeMountPoint functions use this search handle to locate mounted folders on a specified volume.

Syntax


BOOL WINAPI FindVolumeMountPointClose(
  _In_  HANDLE hFindVolumeMountPoint
);

Parameters

hFindVolumeMountPoint [in]

The mounted folder search handle to be closed. This handle must have been previously opened by the FindFirstVolumeMountPoint function.

Return value

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 FindVolumeMountPointClose function is called, the handle hFindVolumeMountPoint cannot be used in subsequent calls to either FindNextVolumeMountPoint or FindVolumeMountPointClose.

The FindFirstVolumeMountPoint, FindNextVolumeMountPoint, and FindVolumeMountPointClose functions return paths to mounted folders for a specified volume. They do not return drive letters or volume GUID paths. For information about enumerating the volume GUID paths for a volume, see Enumerating Volume GUID Paths.

In Windows 8 and Windows Server 2012, this function is supported by the following technologies.

TechnologySupported

Server Message Block (SMB) 3.0 protocol

No

SMB 3.0 Transparent Failover (TFO)

No

SMB 3.0 with Scale-out File Shares (SO)

No

Cluster Shared Volume File System (CsvFS)

No

Resilient File System (ReFS)

Yes

 

SMB does not support volume management functions. CsvFS does not support adding mount point on a CSV volume.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

FindFirstVolumeMountPoint
FindNextVolumeMountPoint
Volume Management Functions
Mounted Folders

 

 

Community Additions

ADD
Show:
© 2014 Microsoft