Microsoft Windows CE 3.0  

CeFindNextFile (RAPI)

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 CeFindFirstFile (RAPI)function. CeFindNextFileis a remote application interface (RAPI), which enables an application running on a desktop computer to make function calls on a Windows CE–based device.

BOOL
CeFindNextFile(
HANDLE
hFindFile
,
LPWIN32_FIND_DATA
lpFindFileData
);

Parameters

hFindFile
[in] Search handle returned by a previous call to the CeFindFirstFilefunction.
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 CeFindNextFileto refer to the found file or directory.

Return Values

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

Remarks

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

When working with RAPI for Windows CE versions 1.0 and 1.01, use the PegFindNextFilefunction.

For more information about using RAPI functions, see Invoking Functions from a Desktop Computer.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 2.0 and later Rapi.h    

See Also

CeFindClose (RAPI), CeFindFirstFile (RAPI), CeGetFileAttributes (RAPI), CeSetFileAttributes (RAPI), WIN32_FIND_DATA