DosPMSemWait

This functions waits for a semaphore to be cleared. It does not establish the ownership of the semaphore.

Syntax
DosPMSemWait (PMSemHandle, SemHandle, Timeout)

Parameters

 * PMSemHandle: PM semaphore handle.
 * SemHandle: Semaphore handle.
 * Timeout: Time out value.