hmtx (HMTX) - input
ulTimeout (ULONG) - input
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)
ulrc (APIRET) - returns
WinRequestMutexSem returns the following values: