RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSingletonImplementation.QueryInterface Method

Returns a reference to a specified interface, if the object supports that interface.

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

QueryInterface checks whether the object that implements this interface supports the interface specified by IID. If so, QueryInterface sets the Obj parameter so that it points to an instance of the specified interface. If the object supports the interface, 0 is returned; otherwise QueryInterface returns a nonzero error code such as E_NOINTERFACE

 

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