We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Call this method to remove a handle from the list of waitable objects.

HRESULT RemoveHandle( 
   HANDLE hObject  
) throw( );


The handle to remove.

Returns S_OK on success, or an error HRESULT on failure.

When the handle is removed IWorkerThreadClient::CloseHandle will be called on the associated object that was passed to AddHandle. If this call fails, CWorkerThread will call the Windows CloseHandle function on the handle.

Header: atlutil.h