RTMutexOpenExisting Method

Opens an existing named mutex.

Namespace:  IntervalZero.RTX64.RTAPI.Threading
Assembly:  IntervalZero.RTX64 (in IntervalZero.RTX64.dll) Version: 3.3.0.0 (File version: 3.5.0)

Syntax
public static RTMutex OpenExisting(
	string name
)

Parameters

name
Type: SystemString
The name of a system-wide named mutex object.

Return Value

Type: RTMutex
A RTMutex object that represents a named system mutex.
Exceptions
ExceptionCondition
ArgumentExceptionName is a zero-length string. -or- name is longer than 260 characters.
ArgumentNullExceptionName is a null reference (Nothing in Visual Basic).
WaitHandleCannotBeOpenedExceptionThe named mutex does not exist.
Remarks
The OpenExisting method attempts to open an existing named mutex. If the system mutex does not exist, this method throws an exception instead of creating the system object. Two calls to this method with the same value for name do not necessarily return the same RTMutex object, even though they represent the same named system mutex.
See Also