ComPtr::ReleaseAndGetAddressOf Method


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Releases the interface associated with this ComPtr and then retrieves the address of the ptr_ data member, which contains a pointer to the interface that was released.

T** ReleaseAndGetAddressOf();  

The address of the ptr_ data member of this ComPtr.

Header: client.h

Namespace: Microsoft::WRL

ComPtr Class
ComPtr::ptr_ Data Member