This function enumerates files within a folder or all folders in main memory or on a mountable file system, such as a flash card.
Header file: | Projects.h |
Windows CE Versions: | 2.01 and later |
int EnumProjectsFiles(PROJECTSFILES_ENUMPROC lpEnumProc, DWORD dwOidFlash, DWORD dwFlags, LPTSTR lpszProj,
LPTSTR lpszFileName, LPARAM lParam);
BOOL CALLBACK EnumProjects(DWORD dwOid, LPARAM lParam);
If this pointer is set to NULL, EnumProjectsFiles only returns the number of files.
PRJ_ENUM_FLASH and PRJ_ENUM_ALL_DEVICES values should not be used together.
The number of files enumerated indicates success. If there are no files to enumerate, EnumProjectsFiles returns a zero. If lpEnumProc is NULL, EnumProjectsFiles still returns the number of folders.
Use the callback function to perform any operations within the enumerated folders—for example, to pass out the name of each file, and then display all these names in a dialog box. The callback function returns FALSE to stop enumeration. This callback function is not the same as the callback function listed in EnumProjects.
To enumerate the files on a flash card, first call FindFirstFlashCard and FindNextFlashCard to locate the object identifier (OID) of the flash card. Enumerate folders using EnumProjects.
EnumProjects, FindFirstFlashCard, FindNextFlashCard