CeFindNextDatabase (CEDB) (Windows CE 5.0)

Send Feedback

This function retrieves the next database in an enumeration context. This function is obsolete. Applications should call CeFindNextDatabaseEx (CEDB) instead.

This function does not work with EDB databases. For more information on EDB, see EDB Functions.

A RAPI version of this function exists called CeFindNextDatabaseEx (RAPI).

CEOIDCeFindNextDatabase(HANDLEhEnum);

Parameters

Return Values

The object identifier of the next database to be enumerated indicates success. Zero indicates that there are no more databases are left to enumerate or that an error occurred. To get extended error information, call GetLastError. The following table lists possible values for GetLastError.

Value Description
ERROR_NO_MORE_ITEMS Indicates that the object store contains no more databases to enumerate.
ERROR_INVALID_PARAMETER Indicates that the hEnum parameter specified an invalid handle.

Remarks

To find all matching databases, CeFindNextDatabase is called in a loop until 0 is returned. If a database is deleted during an enumeration, CeFindNextDatabase fails and returns ERROR_KEY_DELETED. If this error occurs, you must restart the enumeration with a call to CeFindFirstDatabase.

Requirements

OS Versions: Windows CE 1.01 and later.
Header: Windbase.h.
Link Library: Coredll.lib.

See Also

CeFindFirstDatabase (CEDB) | CeFindNextDatabaseEx (CEDB)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.