A version of this page is also available for
This function returns the OID of the next database that matches the enumeration criteria set up by calling the CeFindFirstDatabaseEx (EDB) function.
CEOID CeFindNextDatabaseEx( HANDLE hEnum, PCEGUID pGuid );
[in] Handle to the enumeration context created by calling the CeFindFirstDatabaseEx function.
[out] On successful return, contains the GUID for the volume in which the found database resides. This parameter can be set to NULL.
A valid CEOID indicates success. Zero indicates failure or a lack of additional databases. To get extended error information, call GetLastError. The following table shows possible values.
The hEnum parameter is set to NULL or equal to INVALID_HANDLE_VALUE.
A database was deleted during enumeration.
There are no more items to enumerate.
If there are no remaining databases left to enumerate, this function returns zero, and GetLastError returns ERROR_NO_MORE_ITEMS.
As each volume is enumerated, this function takes a snapshot of the databases that are in the volume. As those databases are being enumerated, if one of them is deleted, this function returns zero, and GetLastError returns ERROR_KEY_DELETED. If this error occurs, restart the enumeration with a call to CeFindFirstDatabaseEx.
When enumeration is complete, the hEnum handle must be closed by calling the CloseHandle function.
The following are the differences between this function and the CEDB equivalent function:
- The order of database enumeration in EDB is different from that in CEDB.
- CEDB requires the CEGUID that is passed in to be the same as that used for CeFindFirstDatabaseEx. EDB ignores this value if it is set. EDB needs only the handle to identify the enumeration context.
|Windows Embedded CE||Windows CE 5.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|