Share via


CeFindFirstDatabase

This function opens an enumeration context to enable an application to enumerate all databases in the object store. CeFindFirstDatabase is a RAPI that enables an application that is running on a desktop computer to make function calls on a Microsoft® Windows® CE–based device.

STDAPI_(HANDLE) CeFindFirstDatabase(
  DWORD dwDbaseType 
);

Parameters

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

Return Values

A handle to an enumeration context indicates success. INVALID_HANDLE_VALUE indicates failure. To get extended error information within a RAPI program, call CeGetLastError. CeGetLastError may 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 function to close a handle returned by the CeFindFirstDatabase (RAPI) function.

Requirements

Pocket PC Platforms: Pocket PC 2000 and later
OS Versions: Windows CE 3.0 and later
Header: rapi.h
Library: rapi.lib

See Also

CeFindFirstDatabase, CeFindNextDatabase, CeCloseHandle

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.