WaitForMultipleObjects (counter less than number of phandler)
Dear All,
I have a question here.
I'm using WaitForMultipleObjects function.
I have 4 lpHandles.
my software are running fine now.
If let said i change the nCount to 2 but i still pass in 4 lphandles objects,
Will the WaitForMultipleObjects return after the 2 event signaled or it will wait until all the 4 event signaled?
Thanks.
DWORD WINAPI WaitForMultipleObjects(
__in DWORD nCount,
__in const HANDLE *lpHandles,
__in BOOL bWaitAll,
__in DWORD dwMilliseconds
);
Re: WaitForMultipleObjects (counter less than number of phandler)
Reading the MSDN help page is easier than opening a topic.
Re: WaitForMultipleObjects (counter less than number of phandler)
Dear Skizmo,
Thanks. I have go though the MSDN help page.
It seem like if i want to change the nCount, i have to reset my plHandles array as well.
This is because my lphandles need to be dynamic.
Thanks.
Re: WaitForMultipleObjects (counter less than number of phandler)
Quote:
Originally Posted by
VbEndUser
It seem like if i want to change the nCount, i have to reset my plHandles array as well.
This is because my lphandles need to be dynamic.
Where did you read this?