CAxWindow::QueryHost

HRESULT QueryHost( REFIID iid, void** ppUnk );

template <class Q>
HRESULT QueryHost( Q** ppUnk );

Return Value

A standard HRESULT value.

Parameters

iid

[in] Specifies the IID of the control’s interface.

ppUnk

[out] A pointer to the IUnknown interface of the host. In the template version of this function, there is no need for a reference ID and the interface can be specified.

Q

[in] The interface that is being queried for.

Remarks

Call this function to return the IUnknown interface of the host. This allows access to the underlying functionality of the window-hosting code, implemented by AxWin.

CAxWindow OverviewClass Members

See Also

CAxWindow::QueryControl