CreateMutexEx Function

Action

Creates a named or unnamed mutex object (Win32 function).

Include file

Kernel.bdh

Syntax

CreateMutexEx( in sSecAttr : string,
               in bInitOwn : boolean,
               in sMtxName : string): number;

Return value

handle to mutex object

Parameter Description
sSecAttr Specifies the security attributes for the mutex object
bInitOwn

Specifies the initial owner of the mutex object:

  • true for calling thread requests immediate ownership

  • false if the mutex is not owned

sMtxName Name of the mutex object

Example

hMutex := CreateMutexEx(NULL, false, "MyConnectMutex");