FindNextFile

This function continues a file search from a previous call to the FindFirstFile function.

A remote application interface (RAPI) version of this function exists and it is named CeFindNextFile.

At a Glance

Header file: Winbase.h
Windows CE versions: 1.0 and later

Syntax

BOOL FindNextFile( HANDLE hFindFile,
LPWIN32_FIND_DATA
lpFindFileData );

Parameters

hFindFile

[in] Search handle returned by a previous call to the FindFirstFile function.

lpFindFileData

[out] Pointer to the WIN32_FIND_DATA structure that receives information about the found file or subdirectory. The structure can be used in subsequent calls to FindNextFile to refer to the found file or directory.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError. If no matching files can be found, the GetLastError function returns ERROR_NO_MORE_FILES.

Remarks

The FindNextFile function searches for files by name only; it cannot be used for attribute-based searches.

See Also

FindClose, FindFirstFile, GetFileAttributes, SetFileAttributes, WIN32_FIND_DATA