This function searches a directory for a file whose name matches the specified file name. It can also examine subdirectories and flash cards.
Header file: | Projects.h |
Windows CE Versions: | 2.01 and later |
HANDLE FindFirstProjectFile(LPCTSTR lpFileName,
LPWIN32_FIND_DATA lpFindFileData, DWORD dwOidFlash,
LPTSTR lpszProj);
If the function succeeds, the return value is a search handle used in a subsequent call to FindNextProjectFile or FindClose. If the function fails, the return value is INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
The FindFirstProjectFile function opens a search handle and returns information about the first file whose name matches the specified pattern. Once the search handle is established, use the FindNextProjectFile function to search for other files that match the same pattern. When the search handle is no longer needed, close it by calling the FindClose function.
This function searches for files by name only; it cannot be used for attribute-based searches.
FindFirstProjectFile replaces FindFirstFile for the Palm-size PC.
FindClose, FindFirstFlashCard, FindNextFlashCard, FindNextProjectFile, WIN32_FIND_DATA