Share via


IRAPISession::CeFindNextFile

Send Feedback

This method retrieves the next file in an enumeration context.

BOOL CeFindNextFile( 
  HANDLE hFindFile, 
  LPCE_FIND_DATA lpFindFileData 
);

Parameters

  • hFindFile
    [in] Search handle obtained with a call to the IRAPISession::CeFindFirstFile method.
  • 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 Values

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

OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib.

See Also

IRAPISession::IUnknown | IRAPISession::CeFindClose | IRAPISession::CeFindFirstFile | CE_FIND_DATA

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.