Purpose
This function allows an FSD to obtain exclusive access to a semaphore.
Calling Sequence
int far pascal FSH_SEMREQUEST(pSem, cmsTimeout) void far * pSem; unsigned long cmsTimeout;
Where
pSem
Returns
If no error is detected, a zero error code is returned. If an error is detected, one of the following error codes is returned:
o
Remarks
The time-out value of 0xFFFFFFFF indicates an indefinite time-out.
The caller may receive access to the semaphore after the time-out period has expired without receiving an ERROR_SEM_TIMEOUT. Semaphore time-out values, therefore, should not be used for exact timing and sequencing.
FSH_SEMREQUEST may block.
Note: OS/2 does not validate input parameters. An FSD, therefore, should call FSH_PROBEBUF where appropriate.