CeFindNextFile (RAPI)

Send Feedback

This method retrieves the next file in an enumeration context.

BOOL CeFindNextFile( 
  HANDLE hFindFile, 
  LPCE_FIND_DATA lpFindFileData 


  • hFindFile
    [in] Search handle returned by a previous call to the CeFindFirstFile function.
  • lpFindFileData
    [out] Pointer to the CE_FIND_DATA structure that receives information about the found file or subdirectory. The structure can be used in subsequent calls to CeFindNextFile to refer to the found file or directory.

Return Values

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


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


Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: Rapi.h
Library: Rapi.lib

See Also

Remote API Functions | CeFindClose | CeFindFirstFile | CeGetFileAttributes | CeSetFileAttributes | CE_FIND_DATA

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.