HandleT::Detach Method
Disassociates the current HandleT object from its underlying handle.
typename HandleTraits::Type Detach();
Return Value
The underlying handle.
Remarks
When this operation completes, the current HandleT is set to the invalid state.
Requirements
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers