CComPtrBase::CopyTo
Call this method to copy the CComPtrBase pointer to another pointer variable.
HRESULT CopyTo(
T** ppT
) throw( );
- ppT
Address of the variable which will receive the CComPtrBase pointer.
Returns S_OK on success, E_POINTER on failure.
Copies the CComPtrBase pointer to ppT. The reference count on the CComPtrBase::p member variable is incremented.
An error HRESULT will be returned if ppT is equal to NULL. In debug builds, an assertion error will occur if ppT is equal to NULL.
Header: atlcomcli.h