WaitForMultipleObjects function (synchapi.h) - Win32 apps

Waits until one or all of the specified objects are in the signaled state or the time-out interval elapses.