Share via


CeFindNextDatabase

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

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

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, 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 | CeFindNextDatabaseEx

 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.