Export (0) Print
Expand All
Expand Minimize

COM_INTERFACE_ENTRY_AUTOAGGREGATE_BLIND

Same as COM_INTERFACE_ENTRY_AUTOAGGREGATE, except that querying for any IID results in forwarding the query to punk, and if punk is NULL, automatically creating the aggregate described by the clsid.

COM_INTERFACE_ENTRY_AUTOAGGREGATE_BLIND( punk, clsid )

Parameters

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.

Remarks

If the interface query fails, processing of the COM map continues.

See COM_INTERFACE_ENTRY Macros for remarks about COM map entries.

Example

From the ATL sample COMMAP:

BEGIN_COM_MAP(COuter)
   ...
   COM_INTERFACE_ENTRY_AUTOAGGREGATE_BLIND(m_pUnkAutoAggB.p, CLSID_CAutoAggB)
   ...
END_COM_MAP()

See Also

COM Map Macros | ATL Macros

Show:
© 2014 Microsoft