A smart pointer class for managing COM interface pointers.
const IID* piid = &__uuidof(T)
class CComQIPtr: public CComPtr<T>
A COM interface specifying the type of pointer to be stored.
A pointer to the IID of T.
Assigns a pointer to the member pointer.
ATL uses CComQIPtr and CComPtr to manage COM interface pointers, both of which derive from CComPtrBase. Both classes perform automatic reference counting through calls to AddRef and Release. Overloaded operators handle pointer operations.