The KeReadStateMutex routine returns the current state, signaled or not signaled, of a given mutex object.
LONG
KeReadStateMutex(
IN PRKMUTEX Mutex
);
If the return value is 1, the state of the mutex object is signaled.
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
Callers of KeReadStateMutex must be running at IRQL <= DISPATCH_LEVEL.