Win32 API synchronization function that can wait for readiness of either a single or all elements in a given set of handles (any type of handle that can have a signalled state), optionally with a timeout.
Waits until one or all of the specified objects are in the signaled state or the time-out interval elapses.