Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function opens an enumeration context to enable an application to enumerate all databases in the object store on a remote Windows Embedded CE–based device.

Note:
This method has been deprecated. Use CeFindFirstDatabaseEx (RAPI)instead.

Syntax

HANDLE CeFindFirstDatabase(
  DWORD 
dwDbaseType 
);

Parameters

dwDbaseType

[in] The type identifier of the databases to enumerate. If this parameter is zero, all databases are enumerated. This value is application-defined and is set when the database is created using the CeCreateDatabase (RAPI)and CeCreateDatabaseEx (RAPI)methods.

Return Value

A handle to an enumeration context indicates success. INVALID_HANDLE_VALUE indicates failure.

When passed a NULL value in the dwDbaseTypeparameter, CeFindFirstDatabasereturns a handle and sets the last error to ERROR_INVALID_PARAMETER.

To get extended error information, call CeGetLastErrorand CeRapiGetError. CeGetLastErrormay return ERROR_OUTOFMEMORY if no memory is available to allocate a database handle.

Remarks

This function only returns the handle to an enumeration context. To begin enumerating databases, an application must call the CeFindNextDatabase (RAPI)function.

Use the CeCloseHandle (RAPI)function to close a handle returned by the CeFindFirstDatabasefunction.

Requirements

Header rapi.h
Library rapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also