Export (0) Print
Expand All

CWorkerThread::RemoveHandle

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

HRESULT RemoveHandle( 
   HANDLE hObject  
) throw( );

hObject

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

Community Additions

ADD
Show:
© 2014 Microsoft