Multithreading Multi-Threaded Programming
Multithreading Multi-Threaded Programming
Multithreading Multi-Threaded Programming
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
WaitForSingleObject function<br />
} Waits until the specified object is in the signaled state or<br />
the time-out interval elapses.<br />
DWORD WINAPI WaitForSingleObject(<br />
_In_ HANDLE hHandle, //A handle to the object.<br />
_In_ DWORD dwMilliseconds ); //The time-out interval, in milliseconds.<br />
} Return value<br />
} WAIT_ABANDONED: The specified object is a mutex object that was not<br />
released by the thread that owned the mutex object before the owning thread<br />
terminated.<br />
} WAIT_OBJECT_0: The state of the specified object is signaled.<br />
} WAIT_TIMEOUT: The time-out interval elapsed, and the object's state<br />
is nonsignaled.<br />
} WAIT_FAILED: The function has failed. To get extended error<br />
information, call GetLastError.<br />
29<br />
Advanced Windows Network <strong>Programming</strong><br />
11/11/12