IITDatabase::GetObject method (infotech.h)

Retrieves a specified IUnknown-based interface on the object identified by the dwObjInstance parameter.

Syntax

HRESULT GetObject(
  [in]  DWORD  dwObjInstance,
  [in]  REFIID riid,
  [out] LPVOID *ppvObj
);

Parameters

[in] dwObjInstance

Identifier for object.

[in] riid

[out] ppvObj

Interface ID requested.

Return value

This method can return one of these values.

Return code Description
S_OK
The operation completed successfully.
E_INVALIDARG
The argument was not valid.
E_NOTINIT
The database has not been opened.
E_OUTOFMEMORY
The memory required for internal structures could not be allocated.

Requirements

Requirement Value
Target Platform Windows
Header infotech.h

See also

IITDatabase