Serial Framework C++ Edition

◆ wclCreateMutex()

HANDLE wclCreateMutex ( const TCHAR *  Name,
const bool  Unique,
const bool  Own = false 
)

Creates a new mutex with given name.

Parameters
NameThe mutex name.
UniqueSet this to true to create a process-dependent unique mutex. Otherwise system wide named mutex will be created.
OwnThe optional parameter (default value is false indicates if the Mutex must be owned by a called.
Returns
If the function succeed the return value is the Mutex handle. If the function failed the return value is NULL.