RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComObject.ObjQueryInterface Method

Implements the QueryInterface method of the IUnknown interface.

Pascal
function ObjQueryInterface(const IID: TGUID; out Obj): HResult; virtual; stdcall;
C++
virtual __fastcall __stdcall HRESULT ObjQueryInterface(const TGUID IID,  Obj);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!