ComPtr::ReleaseAndGetAddressOf Method


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at ComPtr::ReleaseAndGetAddressOf Method.

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