Share via


ComPtrRef::ReleaseAndGetAddressOf Method

 

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

Supports the WRL infrastructure and is not intended to be used directly from your code.

Syntax

InterfaceType** ReleaseAndGetAddressOf();  

Return Value

Pointer to the interface that was represented by the deleted ComPtrRef object.

Remarks

Deletes the current ComPtrRef object and returns a pointer-to-a-pointer to the interface that was represented by the ComPtrRef object.

Requirements

Header: client.h

Namespace: Microsoft::WRL::Details

See Also

ComPtrRef Class
Microsoft::WRL::Details Namespace