Export (0) Print
Expand All

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.

Return Value

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

Remarks

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

See Also

CWorkerThread Overview | Class Members

Show:
© 2015 Microsoft