_com_ptr_t::Detach

 

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

For the latest documentation on Visual Studio 2017, see _com_ptr_t::Detach on docs.microsoft.com. Microsoft Specific

Extracts and returns the encapsulated interface pointer.

  
Interface* Detach( ) throw( );  
  

Extracts and returns the encapsulated interface pointer, and then clears the encapsulated pointer storage to NULL. This removes the interface pointer from encapsulation. It is up to you to call Release on the returned interface pointer.

END Microsoft Specific

_com_ptr_t Class

Show: