>>-SysWaitEventSem(handle-+----------+-)-----------------------><
+-,timeout-+Waits on an event semaphore. SysWaitEventSem returns the WaitForSingleObject return code.
Parameters:
A handle returned from a previous SysCreateEventSem call.
The time, in milliseconds, to wait on the semaphore. The default timeout is an infinite wait.
Return codes:
No errors.
An error occurred. On Windows, a Windows System Error code is returned. This may be one of the following, but could be others.
Invalid handle.
Timeout.