TimedWaitOnLocalSemaphore
Waits on a local semaphore until it is signalled or the specified timeout elapses
#include <nwsemaph.h>
int TimedWaitOnLocalSemaphore (
LONG semaphoreHandle,
LONG timeout);
The following table lists return values and descriptions.
WARNING:A bad semaphore handle causes the server to abend.
TimedWaitOnLocalSemaphore is similar to WaitOnLocalSemaphore except that a waiting time is specified. If the semaphore is not signalled prior to the expiration of the timeout parameter period, TimedWaitOnLocalSemaphore returns an error.