NtDllNtQueryMutex(IntPtr, MutexInformationClass, MutexOwnerInformation, Int32, Int32) Method

Queries a mutual exclusion (Mutex) object.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("NtDll.dll", EntryPoint = "NtQueryMutant")]
public static NTStatus NtQueryMutex(
	IntPtr mutexHandle,
	MutexInformationClass mutexInformationClass,
	out MutexOwnerInformation refMutexInformation,
	int mutexInformationLength,
	[OptionalAttribute] out int refReturnLength
)

Parameters

mutexHandle  IntPtr
The Mutex handle.
mutexInformationClass  MutexInformationClass
The MutexInformationClass.
refMutexInformation  MutexOwnerInformation
The MutexOwnerInformation.
mutexInformationLength  Int32
Length of the Mutex information.
refReturnLength  Int32  (Optional)
Length of the return value.

Return Value

NTStatus
Returns SUCCESS on success, or the appropriate NTStatus error code on failure.

Remarks

See Also