Previous Next

KeResetEvent

The KeResetEvent routine resets a specified event object to a not signaled state and returns the previous state of that event object.

LONG 
  KeResetEvent(
    IN PRKEVENT  Event
    );

Parameters

Event
Pointer 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 a signaled state.

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

Event is reset to a not signaled state, meaning that its value is set to zero.

Unless the caller uses the value returned by KeResetEvent, setting a given event object to a not signaled state using KeClearEvent is faster.

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

See Also

KeClearEvent, KeInitializeEvent, KeReadStateEvent, KeSetEvent, KeWaitForMultipleObjects, KeWaitForSingleObject