ComPtr::Detach Method

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Disassociates this ComPtr object from the interface that it represents.

T* Detach();  

A pointer to the interface that was represented by this ComPtr object.

Header: client.h

Namespace: Microsoft::WRL

ComPtr Class

Show: