The CeFindFirstDatabase function opens an enumeration context for all databases in the system. A RAPI version of this function exists and is also called CeFindFirstDatabase.
HANDLE CeFindFirstDatabase(DWORD dwDbaseType);
Header file: | Winbase.h |
Component: | fsdbase |
Platforms: | H/PC |
Windows CE versions: | 1.01 and later |
If the function succeeds, the return value is a handle to an enumeration context. To find the next database of the given type, specify the handle in a call to the CeFindNextDatabase function. If the function fails, the return value is INVALID_HANDLE_VALUE. To get extended error information when within a CE program call GetLastError. If within a RAPI program, call CeGetLastError. GetLastError and CeGetLastError may return ERROR_OUTOFMEMORY if no memory is available to allocate a database handle.
Use the CeCloseHandle function to close the handle returned by the CeFindFirstDatabase function.
For more information, see Accessing Persistent Storage.
When writing applications for Windows CE version 1.0, use the PegFindFirstDatabase function.