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: (
public static Mutex CreateMutex(
	string Name,
	bool Unique,
	bool Own = false


Type: SystemString
The mutex name.
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