This function retrieves the next database in an enumeration context. This function is obsolete. Applications should call CeFindNextDatabaseEx instead.
A remote application interface (RAPI) version of this function exists and is also called CeFindNextDatabase.
At a Glance
Header file: | Winbase.h |
Windows CE versions: | 1.01 and later |
Syntax
CEOID CeFindNextDatabase(HANDLE hEnum);
Parameters
hEnum
[in] Handle to an enumeration context; this handle is returned from CeFindFirstDatabase.
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 within a Windows CE program, call GetLastError. Possible values for GetLastError include the following:
ERROR_NO_MORE_ITEMS
The object store contains no more databases to enumerate.
ERROR_INVALID_PARAMETER
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.
See Also