Share via


AtlAxGetHost

Obtains a direct interface pointer to the container for a specified window (if any), given its handle.

Important

This function cannot be used in applications that execute in the Windows Runtime.

ATLAPI AtlAxGetHost( 
HWND h, 
IUnknown** pp  
);

Parameters

  • h
    [in] A handle to the window that is hosting the control.

  • pp
    [out] The IUnknown of the container of the control.

Return Value

One of the standard HRESULT values.

Requirements

Header: atlhost.h

See Also

Concepts

Composite Control Fundamentals

Other Resources

Composite Control Global Functions