Skip to main content

TdxCustomSmartImage.QueryInterface(TGUID,Untyped) Method

Provides access to the implementation of a specified interface if the Smart Image container supports it.

Declaration

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

Parameters

Name Type
IID TGUID
Obj

Returns

Type
HRESULT

Remarks

This function returns 0 if the Smart Image container supports the interface whose global unique 128-bit identifier is passed as the IID parameter; otherwise, E_NOINTERFACE. If a TdxCustomSmartImage class descendant supports the specified interface, the QueryInterface function returns a reference to the interfaced object as the Obj out parameter and increments the reference counter.

See Also