hmtx (HMTX) - input

      The handle of the mutex semaphore to request.

    ulTimeout (ULONG) - input

      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 (0)

        WinRequestMutexSem returns immediately without blocking the calling thread.
      SEM_INDEFINITE_WAIT (-1)
        WinRequestMutexSem blocks the calling thread indefinitely.

      ulrc (APIRET) - returns

        Return Code.

        WinRequestMutexSem returns 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


        [Back] [Next]