CComPtr::CopyTo
HRESULT CopyTo( T** ppT );
Return value
A standard HRESULT value. Can be one of the following values:
**S_OK **The pointer was copied successfully.
**E_POINTER **ppT is NULL.
Parameters
ppT
[in] Pointer to the target pointer.
Remarks
Copies the internal pointer to a target pointer. The pointer's reference count is incremented if successful. Returns an error if ppT is NULL.