IRAPISession::CeFindNextFile (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the next file in an enumeration context.

Syntax

BOOL CeFindNextFile( 
  HANDLE hFindFile, 
  LPCE_FIND_DATA lpFindFileData 
);

Parameters

  • lpFindFileData
    [out] Pointer to a CE_FIND_DATA structure that receives information about the next file or subdirectory in the enumeration. This structure can be used in subsequent calls to IRAPISession::CeFindNextFile to retrieve the same file or directory.

Return Value

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

Remarks

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

Requirements

Header rapi2.h
Library ole32.lib, rapiuuid.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

IRAPISession
IRAPISession::CeFindClose
IRAPISession::CeFindFirstFile
CE_FIND_DATA