CeFindNextDatabase

The CeFindNextDatabase function retrieves the next database in an enumeration context. A RAPI version of this function exists and is also called CeFindNextDatabase.

Syntax

CEOID CeFindNextDatabase(HANDLE hEnum);

At a Glance

Header file: Winbase.h
Component: fsdbase
Platforms: H/PC
Windows CE versions: 1.01 and later

Parameters

hEnum
Handle to an enumeration context; this handle is returned from CeFindFirstDatabase.

Return Values

If the function succeeds, the return value is the object identifier of the next database to be enumerated. If no more databases are left to enumerate, or if an error occurs, the return value is zero. To get extended error information, when within a CE program call GetLastError. If within a RAPI program call CeGetLastError. GetLastError and CeGetLastError may return one of the following values:

ERROR_NO_MORE_ITEMS
The object store contains no more databases to enumerate.
ERROR_INVALID_PARAMETER
The hEnum parameter specified an invalid handle.

Remarks

When writing applications for Windows CE version 1.0, use the PegFindNextDatabase function.

See Also

CeFindFirstDatabase