This documentation is archived and is not being maintained.

CComQIPtr Class

A smart pointer class for managing COM interface pointers.

   class T, 
   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.

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.

Header: atlcomcli.h