CeFindNextDatabaseEx (CEDB) (Windows CE 5.0)
This function retrieves the next database in an enumeration context.
This function does not work with EDB databases. For more information on EDB, see EDB Functions.
A RAPI version of this function exists named CeFindNextDatabaseEx (RAPI).
CEOID CeFindNextDatabaseEx( HANDLE hEnum,PCEGUID pceguid);
[in] Handle returned from CeFindFirstDatabaseEx (CEDB).
[out] Pointer to the CEGUID that contains the globally unique identifier of the next database.
A valid CEOID indicates success. Zero indicates failure or a lack of additional databases. Call GetLastError to get the extended error information. The following table lists possible values for GetLastError.
|ERROR_NO_MORE_ITEMS||Indicates that there are no more databases to enumerate.|
|ERROR_KEY_DELETED||Indicates that a database was deleted during enumeration.|
To find all matching databases, CeFindNextDatabaseEx is called in a loop until 0 is returned. If a database is deleted during an enumeration, CeFindNextDatabaseEx fails and returns error ERROR_KEY_DELETED. If this error occurs, you must restart the enumeration with a call to CeFindFirstDatabaseEx. When enumeration is complete, the hEnum handle must be closed by calling the CloseHandle function.
OS Versions: Windows CE 2.10 and later.
Link Library: Coredll.lib.
Send Feedback on this topic to the authors