Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ComPtr::ReleaseAndGetAddressOf Method


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 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

© 2017 Microsoft