A version of this page is also available for
This function retrieves information about all files and directories in the given directory of the Windows Embedded CE object store on a remote device.
BOOL CeFindAllFiles( LPCWSTR szPath, DWORD dwFlags, LPDWORD lpdwFoundCount, LPLPCE_FIND_DATA ppFindDataArray );
[in] Null-terminated string contains the name of the path in which to search for files. Note that within the path string, two backslashes (\\) must be used to achieve a single backslash because the C language reserves a single backslash for escape characters. For example, a valid path would be "\\temp", whereas a path set to "\temp" would expand to the tab character followed by "emp".
[in] Combination of filter and retrieval flags. The filter flags specify what kinds of files to document, and the retrieval flags specify which members of the CE_FIND_DATA structure to retrieve.
The filter flags can be a combination of the following values.
Only retrieve information for directories that have child items.
Do not retrieve information for files or directories that have the hidden attribute set.
Only retrieve information for directories.
Do not retrieve information for ROM files or directories.
Get shortcut target information.
The retrieval flags can be a combination of the following values.
Retrieve the file attributes and copy them to the dwFileAttributes member.
Retrieve the file creation time and copy it to the ftCreationTime member.
Retrieve the time when the file was last accessed and copy it to the ftLastAccessTime member.
Retrieve the time when the file was last written to and copy it to the ftLastWriteTime member.
Retrieve the high-order DWORD value of the file size and copy it to the nFileSizeHigh member.
Retrieve the low-order DWORD value of the file size and copy it to the nFileSizeLow member.
Retrieve the object identifier of the file and copy it to the dwOID member.
Retrieve the file name and copy it to the cFileName member.
Count of flags. For internal use only.
[out] Long pointer to a variable that receives a count of the items found.
[out] Pointer to the pointer to an array of CE_FIND_DATA structures that receive information about the found items. It is the application's responsibility to free the memory used by the array. To free the memory you must call CeRapiFreeBuffer.
Nonzero indicates success. Zero indicates failure. To get extended error information, call CeGetLastError and CeRapiGetError.
|Windows Embedded CE||Windows CE 3.0 and later|
|Windows Mobile||Pocket PC 2000 and later, Smartphone 2002 and later|