CeFindFirstFile (RAPI)

Send Feedback

This function searches for a file or subdirectory in a directory on a remote Microsoft® Windows® CE–based device.

HANDLE CeFindFirstFile(
  LPCWSTR lpFileName, 
  LPCE_FIND_DATA lpFindFileData 
);

Parameters

  • lpFileName
    [in] Long pointer to a null-terminated string that specifies a valid directory or path and file name, which can contain wildcard characters (* and ?).

    There is a default string size limit for paths of MAX_PATH characters.

  • lpFindFileData
    [out] Long pointer to the CE_FIND_DATA structure that receives information about the found file or subdirectory.

Return Values

A valid search handle indicates success. INVALID_HANDLE_VALUE indicates failure. The returned handle can be used in subsequent calls to CeFindNextFile or CeFindClose. To get extended error information, call CeGetLastError and CeRapiGetError.

Requirements

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 | CE_FIND_DATA

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.