Функция _WinAPI_WaitForMultipleObjects

 ↑  ←  Описание функции


_WinAPI_WaitForMultipleObjects

Waits until one or all of the specified objects are in the signaled state

#include <WinAPI.au3>
_WinAPI_WaitForMultipleObjects($iCount, $pHandles [, $fWaitAll = False [, $iTimeout = -1]])

Параметры

$iCount The number of object handles in the array pointed to by pHandles
$pHandles Pointer to an array of object handles
$fWaitAll [необязательный] If True, the function returns when the state of all objects in the pHandles array is signaled.
    If False, the function returns when the state of any one of the objects is set to signaled. In the latter
    case, the return value indicates the object whose state caused the function to return.
$iTimeout [необязательный] The time-out interval, in milliseconds. The function returns if the interval elapses, even if
    the conditions specified by the fWaitAll parameter are not met. If 0, the function tests the states of the
    specified objects and returns immediately. If -1, the function's time-out interval never elapses.

Возвращаемое значение

Успех:Indicates the event that caused the function to return
Ошибка:Возвращает -1

См. также

_WinAPI_WaitForSingleObject

См. также

Искать WaitForMultipleObjects в библиотеке MSDN