hmtx (HMTX) - input

      The handle of the mutex semaphore to request.

    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:

      0L

        SEM_IMMEDIATE_RETURN DosRequestMutexSem returns immediately without blocking the calling thread.
      -1L
        SEM_INDEFINITE_WAIT
        DosRequestMutexSem blocks the calling thread indefinitely.

      ulrc (APIRET) - returns

        Return Code.

        DosRequestMutexSem returns one of the following values:

      • NO_ERROR 6
          ERROR_INVALID_HANDLE
        95
          ERROR_INTERRUPT
        103
          ERROR_TOO_MANY_SEM_REQUESTS
        105
          ERROR_SEM_OWNER_DIED
        640
          ERROR_TIMEOUT
        For a full list of error codes, see Errors.


      [Back] [Next]