CComPtr<IUnknown> m_spUnk;
Remarks
This smart pointer maintains a reference on the object passed to CComEnumImpl::Init, ensuring that it remains alive during the lifetime of the enumerator.
CComEnumImpl Overview | Class Members
See Also
CComEnumImpl::Init