CWorkerThread::AddHandle
The document is archived and information here might be outdated

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( );

Parameters

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.

Show:
© 2016 Microsoft