Microsoft Windows CE 3.0  

FindNextFile

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

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

BOOL
FindNextFile(
HANDLE
hFindFile
,
LPWIN32_FIND_DATA
lpFindFileData
);

Parameters

hFindFile
[in] Search handle returned by a previous call to the FindFirstFilefunction.
lpFindFileData
[out] Pointer to the WIN32_FIND_DATAstructure that receives information about the found file or subdirectory. The structure can be used in subsequent calls to FindNextFileto 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 GetLastErrorfunction returns ERROR_NO_MORE_FILES.

Remarks

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

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winbase.h   Coredll.lib, Fsmain.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

FindClose, FindFirstFile, GetFileAttributes, GetLastError, SetFileAttributes, WIN32_FIND_DATA