Click or drag to resize

wclHelpersCreateMutex Method (String, Boolean, Boolean)

Creates a new mutex with given name.

Namespace:  wclCommon
Assembly:  wclCommon (in wclCommon.dll) Version: 7.4.16.0 (7.4.16.0)
Syntax
public static Mutex CreateMutex(
	string Name,
	bool Unique,
	bool Own = false
)

Parameters

Name
Type: SystemString
The mutex name.
Unique
Type: SystemBoolean
Set this to True to create a process depended unique mutex. Otherwise system wide named mutex will be created.
Own (Optional)
Type: SystemBoolean
The optionam parameter (default value is false indicates if the Mutex must be owned by a called.

Return Value

Type: Mutex
If the function succeed the return value is the Mutex handle. If the function failed the return value is zero.
See Also