This function enumerates 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 EnumProjects(PROJECT_ENUMPROC lpEnumProc,
DWORD dwOidFlash, DWORD dwFlags, LPARAM lParam);
BOOL CALLBACK EnumProjects(DWORD dwOid, LPARAM lParam);
If this pointer is set to NULL, EnumProjects only returns the number of projects.
The number of folders enumerated indicates success. If there are no folders to enumerate, EnumProjects returns a zero. If lpEnumProc is NULL, EnumProjects 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 folder, and then display all these names in a dialog box. The callback function returns FALSE to stop enumeration.
To enumerate the folders on a flash card, first call FindFirstFlashCard and FindNextFlashCard to locate the object identifier (OID) of the flash card. Once you have enumerated the folders with EnumProjects, enumerate the files with EnumProjectsFiles.
EnumProjectsFiles, FindFirstFlashCard, FindNextFlashCard