Share via


IRAPISession::CeFindFirstFile (Windows Embedded CE 6.0)

1/6/2010

This method searches for a file or subdirectory in a directory on a remote Windows Embedded CEā€“based device.

Syntax

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. This string can contain wildcard characters (* and ?).

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

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

Return Value

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

Requirements

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

See Also

Reference

IRAPISession
IRAPISession::CeFindNextFile
IRAPISession::CeFindClose