CeOidGetInfoEx2 (EDB) (Compact 7)

3/12/2014

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

This function does not work with CEDB databases. For more information about CEDB, see CEDB Reference.

Syntax

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

Parameters

  • pGuid
    [in] CEGUID of the mounted volume in which the object identified by the oidparameter 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

See Also

Reference

EDB Functions
CeMountDBVolEx (EDB)
CEOIDINFOEX (EDB)