Share via


CeFindNextDatabase (CEDB) (Windows Embedded CE 6.0)

1/6/2010

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

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

Syntax

CEOID CeFindNextDatabase(
  HANDLE hEnum
); 

Parameters

Return Value

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

Value Description

ERROR_INVALID_PARAMETER

Indicates that the hEnum parameter specified an invalid handle.

ERROR_NO_MORE_ITEMS

Indicates that the object store contains no more databases to enumerate.

Remarks

To find all matching databases, this function is called in a loop until zero is returned. If a database is deleted during an enumeration, this function fails and returns ERROR_KEY_DELETED. If this error occurs, you must restart the enumeration by calling CeFindFirstDatabase.

Requirements

Header windbase.h
Library coredll.lib
Windows Embedded CE Windows CE 1.01 and later

See Also

Reference

CEDB Functions
CeFindFirstDatabase (CEDB)
CeFindNextDatabaseEx (CEDB)