다음을 통해 공유


CWorkerThread::RemoveHandle

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

HRESULT RemoveHandle(
   HANDLE hObject 
) throw( );

Parameters

  • hObject
    The handle to remove.

Return Value

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

Remarks

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.

Requirements

Header: atlutil.h

See Also

Reference

CWorkerThread Class

Other Resources

CWorkerThread Members