RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.QueryInterface Method

Returns a reference to a specified interface if that interface is supported by the form.

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

For forms that support interfaces, QueryInterface calls the QueryInterface method of the interface supported by the form. QueryInterface returns a reference to the interface specified by the IID parameter, as the Obj parameter. If the form does not support the interface, the Obj parameter is nil (Delphi) or NULL (C++). 

QueryInterface returns S_OK if the Obj parameter is successfully assigned. 

 

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