Vcl.OleServer.TOleServer.QueryInterface

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function QueryInterface(const IID: TGUID; out Obj): HResult; override;

C++

virtual HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.OleServer.pas
Vcl.OleServer.hpp
Vcl.OleServer TOleServer

Description

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

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.

See Also