Export (0) Print
Expand All
ATL
Expand Minimize

COM_INTERFACE_ENTRY_AUTOAGGREGATE

Same as COM_INTERFACE_ENTRY_AGGREGATE, except if punk is NULL, it automatically creates the aggregate described by the clsid.

COM_INTERFACE_ENTRY_AUTOAGGREGATE( iid, punk, clsid )

iid

[in] The GUID of the interface queried for.

punk

[in] The name of an IUnknown pointer. Must be a member of the class containing the COM map.

clsid

[in] The identifier of the aggregate that will be created if punk is NULL.

See COM_INTERFACE_ENTRY Macros for remarks about COM map entries.


BEGIN_COM_MAP(COuter3)
   COM_INTERFACE_ENTRY_AUTOAGGREGATE(__uuidof(IAutoAgg), m_punkAutoAgg, CLSID_CAutoAgg)
END_COM_MAP()


Header: atlcom.h

Community Additions

ADD
Show:
© 2014 Microsoft