RAD Studio VCL Reference
|
Implements the IInterface System::TContainedObject::QueryInterface method.
function QueryInterface(const IID: TGUID; out Obj): HResult; virtual; stdcall;
virtual __stdcall HResult QueryInterface(const TGUID IID, out Obj);
Do not call the protected System::TContainedObject::QueryInterface method directly. System::TContainedObject::QueryInterface is called through IInterface to obtain an interface pointer for the interface identified by the IID parameter. If the object supports the requested interface, it is returned in the Obj parameter and System::TInterfacedObject::QueryInterface returns S_OK. If the object does not support the interface, System::TContainedObject::QueryInterface returns E_NOINTERFACE.
If System::TContainedObject::QueryInterface successfully returns an interface pointer, it automatically increments the reference count.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|