I'm confused: There's a recommendation that when attaching an overlay protocol the handle passed as the underlying protocol is invalidated, and there's a suggestion that you can close (detach) the overlay protocol and continue to use the underlying protocol.
Don't see how that works ... unless for this pattern the user is expected to duplicate the underlying handle himself and pass that (duplicate) to the attach API, leaving him holding a valid handle to the underlying protocol.
I'm confused: There's a recommendation that when attaching an overlay protocol the handle passed as the underlying protocol is invalidated, and there's a suggestion that you can close (detach) the overlay protocol and continue to use the underlying protocol.
Don't see how that works ... unless for this pattern the user is expected to duplicate the underlying handle himself and pass that (duplicate) to the attach API, leaving him holding a valid handle to the underlying protocol.