KeReadStateSemaphore

LONG
    KeReadStateSemaphore(

        IN PKSEMAPHORE  Semaphore
        );

KeReadStateSemaphore returns the current state, Signaled or Not-Signaled, of a given semaphore object.

Parameters

Semaphore
Points to an initialized semaphore object for which the caller provides the storage.

Return Value

If the return value is zero, the current state of the semaphore object is Not-Signaled.

Comments

Callers of KeReadStateSemaphore can be running at any IRQL.

See Also

KeInitializeSemaphore, KeReleaseSemaphore