Partager via


CeFindFirstDatabase (CEDB) (Windows Embedded CE 6.0)

1/6/2010

This function opens an enumeration context that enables an application to enumerate all databases in the object store. This function is obsolete. Call the CeFindFirstDatabaseEx (CEDB) function instead.

A RAPI version of this function exists named CeFindFirstDatabaseEx (RAPI).

Syntax

HANDLE CeFindFirstDatabase(
  DWORD dwDbaseType
); 

Parameters

  • dwDbaseType
    [in] Type identifier of the databases to enumerate. If this parameter is set to zero, all databases are enumerated.

Return Value

A handle to an enumeration context indicates success. INVALID_HANDLE_VALUE indicates failure. To get extended error information, call GetLastError. GetLastError may return ERROR_OUTOFMEMORY if no memory is available to allocate an enumeration context handle.

Remarks

This function returns the handle to an enumeration context. To begin enumerating databases, an application must call the CeFindNextDatabaseEx (CEDB) function. To find all the databases of the desired type, specify the enumeration context handle in multiple calls to CeFindNextDatabase. When an application is finished with the handle to the enumeration context, use the CloseHandle function to release the resources associated with the enumeration context.

Requirements

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

See Also

Reference

CEDB Functions
CeFindFirstDatabaseEx (CEDB)
CeFindNextDatabase (CEDB)
CloseHandle