COM_INTERFACE_ENTRY_AGGREGATE( iid, punk )
Parameters
iid
[in] The GUID of the interface queried for.
punk
[in] The name of an IUnknown pointer.
Remarks
When the interface identified by iid is queried for, COM_INTERFACE_ENTRY_AGGREGATE forwards to punk. The punk parameter is assumed to point to the inner unknown of an aggregate or to NULL, in which case the entry is ignored. Typically, you would CoCreate the aggregate in FinalConstruct.
For example, from the ATL sample COMMAP:
BEGIN_COM_MAP(COuter)
...
COM_INTERFACE_ENTRY_AGGREGATE(IID_IAgg, m_pUnkAgg.p)
...
END_COM_MAP()
See COM_INTERFACE_ENTRY Macros for remarks about COM map entries.