System.Variants.TCustomVariantType.QueryInterface
Delphi
function QueryInterface(const IID: TGUID; out Obj): HResult; virtual; stdcall;
C++
virtual HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Variants.pas System.Variants.hpp |
System.Variants | TCustomVariantType |
Description
Returns a reference to a specified interface if the object supports that interface.
QueryInterface checks whether the TCustomVariantType object supports the interface specified by IID. If so, QueryInterface
increments the reference count.
sets the Obj parameter so that it points to an instance of the specified interface.
returns 0 to indicate success.
If the object does not support the interface, QueryInterface returns a nonzero error code such as E_NoInterface.