2OOO, 24 November
typedef struct _MUTANT_BASIC_INFORMATION {
LONG CurrentCount;
BOOLEAN OwnedByCaller;
BOOLEAN AbandonedState;
} MUTANT_BASIC_INFORMATION, *PMUTANT_BASIC_INFORMATION;
Use MUTANT_BASIC_INFORMATION as a buffer in NtQueryMutant call.
CurrentCount
If CurrentCount is less than zero, mutant is signaled.OwnedByCaller
It's TRUE if mutant is signaled by caller's thread.AbandonedState
Is set when thread terminates without call NtReleaseMutant.