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


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

The handle to a waitable object.


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


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

© 2014 Microsoft. All rights reserved.