NtDllNtQueryMutex(IntPtr, MutexInformationClass, MutexOwnerInformation, Int32, Int32) Method
Queries a mutual exclusion (Mutex) object.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("NtDll.dll", EntryPoint := "NtQueryMutant">]
Public Shared Function NtQueryMutex (
mutexHandle As IntPtr,
mutexInformationClass As MutexInformationClass,
<OutAttribute> ByRef refMutexInformation As MutexOwnerInformation,
mutexInformationLength As Integer,
<OptionalAttribute> <OutAttribute> ByRef refReturnLength As Integer
) As NTStatus
Dim mutexHandle As IntPtr
Dim mutexInformationClass As MutexInformationClass
Dim refMutexInformation As MutexOwnerInformation
Dim mutexInformationLength As Integer
Dim refReturnLength As Integer
Dim returnValue As NTStatus
returnValue = NtDll.NtQueryMutex(mutexHandle,
mutexInformationClass, refMutexInformation,
mutexInformationLength, refReturnLength)
public:
[DllImportAttribute(L"NtDll.dll", EntryPoint = L"NtQueryMutant")]
static NTStatus NtQueryMutex(
[InAttribute] IntPtr mutexHandle,
[InAttribute] MutexInformationClass mutexInformationClass,
[OutAttribute] MutexOwnerInformation% refMutexInformation,
[InAttribute] int mutexInformationLength,
[OptionalAttribute] [OutAttribute] int% refReturnLength
)
[<DllImportAttribute("NtDll.dll", EntryPoint = "NtQueryMutant")>]
static member NtQueryMutex :
mutexHandle : IntPtr *
mutexInformationClass : MutexInformationClass *
refMutexInformation : MutexOwnerInformation byref *
mutexInformationLength : int *
[<OptionalAttribute>] refReturnLength : int byref -> NTStatus
No code example is currently available or this language may not be supported.
- 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.
NTStatus
Returns
SUCCESS on success, or the appropriate
NTStatus error code on failure.