Jungo WinDriver  
Official Documentation

◆ OsSemaphoreWait()

DWORD DLLCALLCONV OsSemaphoreWait ( _In_ HANDLE  hOsSemaphore,
_In_ DWORD  dwSecTimeout 
)

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

Parameters
[in]hOsSemaphoreThe handle to the semaphore object
[in]dwSecTimeoutTime-out interval of the semaphore, 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