hev (HEV) - input

      The handle of the event semaphore to wait for.

    ulTimeout (ULONG) - input

      The time-out in milliseconds.

      This is the maximum amount of time the user wants to allow the thread to be blocked.

      This parameter can also have the following values:

    • SEM_IMMEDIATE_RETURN DosWaitEventSem returns without blocking the calling thread.

    • SEM_INDEFINITE_WAIT
      DosWaitEventSem blocks the calling thread indefinitely.

    ulrc (APIRET) - returns

      Return Code.

      DosWaitEventSem returns one of the following values:

    • NO_ERROR 6
        ERROR_INVALID_HANDLE
      8
        ERROR_NOT_ENOUGH_MEMORY
      95
        ERROR_INTERRUPT
      640
        ERROR_TIMEOUT
      For a full list of error codes, see Errors.


    [Back] [Next]