KeResetEvent

LONG
    KeResetEvent(

        IN PKEVENT  Event
        );

KeResetEvent resets the state of a specified event object to Not-Signaled and returns the previous state of that event object.

Parameters

Event
Points to an initialized dispatcher object of type event for which the caller provides the storage.

Return Value

KeResetEvent returns the previous state of the given Event, nonzero for Signaled.

Comments

The state of Event is reset to Not-Signaled, meaning its value is set to zero.

Unless the caller uses the value returned by KeResetEvent, setting the state of a given event object to Not-Signaled with KeClearEvent is faster.

Callers of KeResetEvent must be running at IRQL <= DISPATCH_LEVEL.

See Also

KeClearEvent, KeInitializeEvent, KeReadStateEvent, KeSetEvent, KeWaitForMultipleObjects, KeWaitForSingleObject