Platform SDK: Files and I/O |
The FindNextVolumeMountPoint function continues a volume mount point search started by a call to the FindFirstVolumeMountPoint function. FindNextVolumeMountPoint finds one volume mount point per call.
BOOL FindNextVolumeMountPoint( HANDLE hFindVolumeMountPoint, // search handle LPTSTR lpszVolumeMountPoint, // output buffer DWORD cchBufferLength // size of output buffer );
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. If no matching files can be found, the GetLastError function returns the ERROR_NO_MORE_FILES error code. In that case, close the search with the FindVolumeMountPointClose function.
After the search handle is established by calling FindFirstVolumeMountPoint, you can use the FindNextVolumeMountPoint function to search for other volume mount points.
You should not assume any correlation between the order of volume mount points returned with these functions and the order of volume mount points returned by other tools.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
File Systems Overview, File System Functions, FindFirstVolumeMountPoint, FindVolumeMountPointClose