Skip to content

Latest commit

 

History

History
187 lines (142 loc) · 4.79 KB

nf-fileapi-findnextvolumew.md

File metadata and controls

187 lines (142 loc) · 4.79 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:fileapi.FindNextVolumeW
FindNextVolumeW function (fileapi.h)
Continues a volume search started by a call to the FindFirstVolume function. (FindNextVolumeW)
FindNextVolume
FindNextVolume function [Files]
FindNextVolumeA
FindNextVolumeW
_win32_findnextvolume
base.findnextvolume
fileapi/FindNextVolume
fileapi/FindNextVolumeA
fileapi/FindNextVolumeW
fs.findnextvolume
winbase/FindNextVolume
winbase/FindNextVolumeA
winbase/FindNextVolumeW
fs\findnextvolume.htm
fs
6ab4467a-f84a-403e-9327-b523ceead19f
12/05/2018
FindNextVolume, FindNextVolume function [Files], FindNextVolumeA, FindNextVolumeW, _win32_findnextvolume, base.findnextvolume, fileapi/FindNextVolume, fileapi/FindNextVolumeA, fileapi/FindNextVolumeW, fs.findnextvolume, winbase/FindNextVolume, winbase/FindNextVolumeA, winbase/FindNextVolumeW
fileapi.h
Windows.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
FindNextVolumeW (Unicode) and FindNextVolumeA (ANSI)
Kernel32.lib
Kernel32.dll
Windows
19H1
FindNextVolumeW
fileapi/FindNextVolumeW
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-File-l1-1-0.dll
KernelBase.dll
API-MS-Win-Core-File-l1-2-0.dll
API-MS-Win-Core-File-l1-2-1.dll
API-MS-Win-Core-File-l1-2-2.dll
API-MS-Win-DownLevel-Kernel32-l1-1-0.dll
MinKernelBase.dll
API-Ms-Win-Core-File-Ansi-L1-1-0.dll
Kernel32Legacy.dll
FindNextVolume
FindNextVolumeA
FindNextVolumeW

FindNextVolumeW function

-description

Continues a volume search started by a call to the FindFirstVolume function. FindNextVolume finds one volume per call.

-parameters

-param hFindVolume [in]

The volume search handle returned by a previous call to the FindFirstVolume function.

-param lpszVolumeName [out]

A pointer to a string that receives the volume GUID path that is found.

-param cchBufferLength [in]

The length of the buffer that receives the volume GUID path, in TCHARs.

-returns

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 FindVolumeClose function.

-remarks

After the search handle is established by calling FindFirstVolume, you can use the FindNextVolume function to search for other volumes.

You should not assume any correlation between the order of the volumes that are returned by these functions and the order of the volumes that are on the computer. In particular, do not assume any correlation between volume order and drive letters as assigned by the BIOS (if any) or the Disk Administrator.

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

Technology Supported
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) Yes
Resilient File System (ReFS) Yes
 

SMB does not support volume management functions.

Examples

For an example, see Displaying Volume Paths.

-see-also

FindFirstVolume

FindVolumeClose

Mounted Folders

Volume Management Functions