Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CWorkerThread::AddHandle

Call this method to add a waitable object's handle to the list maintained by the worker thread.

HRESULT AddHandle( 
   HANDLE hObject, 
   IWorkerThreadClient* pClient, 
   DWORD_PTR dwParam  
) throw( );
hObject

The handle to a waitable object.

pClient

The pointer to the IWorkerThreadClient interface on the object to be called when the handle is signaled.

dwParam

The parameter to be passed to IWorkerThreadClient::Execute when the handle is signaled.

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

IWorkerThreadClient::Execute will be called through pClient when the handle, hObject, is signaled.

Header: atlutil.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.