_com_ptr_t::Detach
Microsoft Specific
Extracts and returns the encapsulated interface pointer.
Syntax
Interface* Detach( ) throw( );
Remarks
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
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for