次の方法で共有


CeFindNextDatabase (CEDB) (Compact 2013)

3/26/2014

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

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

See Also

Reference

CEDB Functions
CeFindFirstDatabase (CEDB)
CeFindNextDatabaseEx (CEDB)