次の方法で共有


CeFindFirstDatabase (CEDB) (Compact 2013)

3/26/2014

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.

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

See Also

Reference

CEDB Functions
CeFindFirstDatabaseEx (CEDB)
CeFindNextDatabase (CEDB)
CloseHandle