Compartilhar via


ComPtr::GetAddressOf Method

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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.

Syntax

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

Return Value

The address of a variable.

Requirements

Header: client.h

Namespace: Microsoft::WRL

See Also

ComPtr Class