FindNextStreamW function (fileapi.h)

Continues a stream search started by a previous call to the FindFirstStreamW function.


BOOL FindNextStreamW(
  [in]  HANDLE hFindStream,
  [out] LPVOID lpFindStreamData


[in] hFindStream

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

[out] lpFindStreamData

A pointer to the WIN32_FIND_STREAM_DATA structure that receives information about the stream.

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. If no more streams can be found, GetLastError returns ERROR_HANDLE_EOF (38).


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

Technology Supported
Server Message Block (SMB) 3.0 protocol Yes
SMB 3.0 Transparent Failover (TFO) Yes
SMB 3.0 with Scale-out File Shares (SO) Yes
Cluster Shared Volume File System (CsvFS) Yes
Resilient File System (ReFS) Yes


Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header fileapi.h (include Windows.h, WinBase.h)
Library Kernel32.lib
DLL Kernel32.dll

See also

File Management Functions