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::GetAddressOf 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::GetAddressOf Method.

Retrieves the address of the ptr_ data member, which contains a pointer to the interface represented by this ComPtr.

T* const* GetAddressOf() const;  
T** GetAddressOf();  

The address of a variable.

Header: client.h

Namespace: Microsoft::WRL

ComPtr Class

© 2017 Microsoft