FindVolumeMountPointClose 函式 (winbase.h)

關閉指定的掛接資料夾搜尋句柄。 FindFirstVolumeMountPointFindNextVolumeMountPoint 函式會使用此搜尋句柄來找出指定磁碟區上掛接的資料夾。

語法

BOOL FindVolumeMountPointClose(
  [in] HANDLE hFindVolumeMountPoint
);

參數

[in] hFindVolumeMountPoint

要關閉的掛接資料夾搜尋句柄。 此句柄先前必須由 FindFirstVolumeMountPoint 函式開啟。

傳回值

如果函式成功,則傳回非零的值。

如果此函式失敗,則傳回值為零。 若要取得擴充的錯誤資訊,請呼叫 GetLastError

備註

呼叫 FindVolumeMountPointClose 函式之後,句柄 hFindVolumeMountPoint 無法在後續呼叫 FindNextVolumeMountPoint 或 FindVolumeMountPointClose 時使用。

FindFirstVolumeMountPointFindNextVolumeMountPointFindVolumeMountPointClose 函式會傳回指定磁碟區之掛接資料夾的路徑。 它們不會傳回驅動器號或磁碟區 GUID 路徑。 如需列舉磁碟區 GUID 路徑的相關信息,請參閱 列舉磁碟區 GUID 路徑

在 Windows 8 和 Windows Server 2012 中,下列技術支援此函式。

技術 支援
伺服器消息塊 (SMB) 3.0 通訊協定 No
SMB 3.0 透明故障轉移 (TFO) No
具有向外延展檔案共用的SMB 3.0 (SO) No
叢集共用磁碟區文件系統 (CsvFS) No
彈性檔案系統 (ReFS) Yes
 

SMB 不支援磁碟區管理功能。 CsvFS 不支援在 CSV 磁碟區上新增裝入點。

規格需求

需求
最低支援的用戶端 Windows XP [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限桌面應用程式]
目標平台 Windows
標頭 winbase.h (包含 Windows.h)
程式庫 Kernel32.lib
DLL Kernel32.dll

另請參閱

FindFirstVolumeMountPoint

FindNextVolumeMountPoint

掛接的資料夾

磁碟區管理功能