Export (0) Print
Expand All
Expand Minimize

KeResetEvent routine

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

Syntax


LONG KeResetEvent(
  _Inout_  PRKEVENT Event
);

Parameters

Event [in, out]

A pointer to an initialized dispatcher object of type event for which the caller provides the storage.

Return value

KeResetEvent returns a value that indicates the previous state of the specified Event, which is nonzero for a signaled state.

Remarks

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

Unless the caller requires the value that is returned by KeResetEvent, using the KeClearEvent routine is a faster way to set an event object to a not-signaled state.

For more information about event objects, see Event Objects.

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<=DISPATCH_LEVEL

DDI compliance rules

IrqlKeDispatchLte, HwStorPortProhibitedDDIs

See also

KeClearEvent
KeInitializeEvent
KeReadStateEvent
KeSetEvent
KeWaitForMultipleObjects
KeWaitForSingleObject

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft