Share via


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();

Return Value

The address of the ptr_ data member of this ComPtr.

Requirements

Header: client.h

Namespace: Microsoft::WRL

See Also

Reference

ComPtr Class

ComPtr::ptr_ Data Member