Requests ownership of a mutex semaphore.

#define INCL_DOSSEMAPHORES
#include <os2.h>

HMTX      hmtx;       /*  The handle of the mutex semaphore to request. */
ULONG     ulTimeout;  /*  The time-out in milliseconds. */
APIRET    ulrc;       /*  Return Code. */

ulrc = DosRequestMutexSem(hmtx, ulTimeout);


[Back] [Next]