int = Detach()
Detaches the Win32 handle from the handle object.
Comments
After calling this function, the handle is effectively invalidated,
but the handle is not closed. You would call this function when you
need the underlying win32 handle to exist beyond the lifetime of the
handle object.
Return Value
The result is the value of the handle before it is detached. If the
handle is already detached, this will return zero.