System.Win.ComObj.TComObject.ObjQueryInterface

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ObjQueryInterface(const IID: TGUID; out Obj): HResult; virtual; stdcall;

C++

virtual HRESULT __stdcall ObjQueryInterface(const GUID &IID, /* out */ void *Obj);

Properties

Type Visibility Source Unit Parent
function public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TComObject

Description

Implements the QueryInterface method of the IUnknown interface.

QueryInterface queries whether the COM object supports a given interface specified by the IID parameter. QueryInterface is used as the implementation of the IUnknown QueryInterface method when the COM object (TComObject) is not part of an aggregate.