Jungo WinDriver  
Official Documentation

◆ OsEventWait()

DWORD DLLCALLCONV OsEventWait ( _In_ HANDLE  hOsEvent,
_In_ DWORD  dwSecTimeout 
)

Waits until a specified event object is in the signaled state or the time-out interval elapses.

Parameters
[in]hOsEventThe handle to the event object
[in]dwSecTimeoutTime-out interval of the event, in seconds. For an infinite wait, set the timeout to INFINITE.
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise