CeOidGetInfoEx2 (EDB)

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function obtains information about an OID that was generated by EDB.

Syntax

BOOL CeOidGetInfoEx2(
  PCEGUID pGuid,
  CEOID oid,
  CEOIDINFO* poidInfo
);

Parameters

  • pGuid
    [in] CEGUID of the mounted volume in which the object identified by the oid ** parameter resides. You can mount a volume with the CeMountDBVolEx (EDB) function.
  • oid
    [in] Identifier of the object for which information is to be retrieved. This OID must have been generated by one of the EDB functions.
  • poidInfo
    [in, out] Pointer to a CEOIDINFOEX (EDB) structure. On successful return, it contains information about the object specified by oid. The caller must set the wVersion member of CEOIDINFOEX to CEOIDINFO_VERSION (2).

Return Value

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError. The following table shows possible values.

Return Value Description

ERROR_INVALID_HANDLE

The oid parameter does not identify a valid object in the volume specified by pGuid.

ERROR_INVALID_PARAMETER

Indicates one of the following:

  • The pGuid parameter is set to NULL.
  • The oid parameter is set to NULL.
  • The poidInfo parameter is set to NULL.
  • The wVersion member of CEOIDINFOEX returned by poidInfo is not equal to CEOIDINFOEX_VERSION (2).

ERROR_NOT_FOUND

The volume specified by pGuid does not exist.

Remarks

The oid parameter can reference a database or a record in a database.

EDB supports only OBJTYPE_DATABASE and OBJTYPE_RECORD OID types.

Requirements

Header windbase.h
Library coredll.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

EDB Functions
CeMountDBVolEx (EDB)
CEOIDINFOEX (EDB)