RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleServer.QueryInterface Method

Returns a reference to a specified interface if the OLE server supports that interface.

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

QueryInterface implements the IUnknown interface method QueryInterface. QueryInterface returns a reference to the interface specified by the IID parameter as the Obj parameter. If the OLE server does not support the interface, the Obj parameter returns nil NULL and QueryInterface returns a nonzero error code. 

 

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