Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.41 KB

File metadata and controls

53 lines (35 loc) · 1.41 KB

Home

Function name : CeFindFirstFile

Group: Remote Application Programming (RAPI) - Library: rapi


This function searches a directory for a file whose name matches the specified filename. CeFindFirstFile examines subdirectory names as well as filenames.


Code examples:

Pocket PC: custom RAPI class for operating with files and folders on mobile device

Declaration:

HANDLE CeFindFirstFile(
	LPCWSTR lpFileName,
	LPCE_FIND_DATA lpFindFileData
);  

FoxPro declaration:

DECLARE INTEGER CeFindFirstFile IN rapi;
	STRING   lpFileName,;
	STRING @ lpFindFileData
  

Parameters:

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

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


Return value:

A search handle, used in a subsequent call to CeFindNextFile or CeFindClose, indicates success. INVALID_HANDLE_VALUE indicates failure.


Comments:

See also: CeCloseHandle, CeFindNextFile functions.