CComPtr::Attach

void Attach( T* p2 );

Parameters

p2

[in] A pointer.

Remarks

Attaches a pointer without incrementing its reference count. The pointer's reference count has had its reference count incremented by calling IUnknown::AddRef.

CComPtr OverviewClass Members