Partager via


FindNextFile (Windows CE 5.0)

Send Feedback

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

A RAPI version of this function exists, called CeFindNextFile (RAPI).

BOOLFindNextFile( HANDLEhFindFile, LPWIN32_FIND_DATAlpFindFileData );

Parameters

  • hFindFile
    [in] Search handle returned by a previous call to the FindFirstFile or the FindFirstFileEx 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

When the search handle is no longer needed, close it by using the FindClose function.

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

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

FindClose | FindFirstFile | GetFileAttributes | WIN32_FIND_DATA

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.