Creates a mutex semaphore.
#define INCL_DOSSEMAPHORES
#include <os2.h>
PSZ pszName; /* Pointer to the ASCIIZ name of the semaphore. */
PHMTX phmtx; /* A pointer to the handle of the mutex semaphore. */
ULONG flAttr; /* A set of flags that specify the attributes of the semaphore. */
BOOL32 fState; /* Initial state of the semaphore. */
APIRET ulrc; /* Return Code. */
ulrc = DosCreateMutexSem(pszName, phmtx, flAttr,
fState);