## Printer Device Driver

[prev][next][parent][TOC]

### GplSemCreateMutexSem

Description

This call creates a MUTEX semaphore.

Format

    APIRET APIENTRY GplSemCreateMutexSem( PMTXSEM  pmtxsem,

                                          ULONG    flAttr );

Parameters

pmtxsem (PMTXSEM) Address of MTXSEM structure.

flAttr (ULONG) Creation flags. DC_SEM_SHARED is the only flag.

Returns

Success NO_ERROR
Failure ERROR_INVALID_PARAMETER
or return code from:
DosQueryMem
DosCreateEventSem
DosCreateMutexSem

Notes

The caller must first allocate memory for the MTXSEM structure. See GPLSEM. H, where this structure is defined. If the memory is allocated from shared memory, the caller may specify the DC_SEM_SHARED flag for flAttr parameter.