KeInitializeEvent

VOID
    KeInitializeEvent(

        IN PKEVENT  Event,
        IN EVENT_TYPE  Type,
        IN BOOLEAN  State
        );

KeInitializeEvent initializes an event object as a synchronization (single waiter) or notification type event and sets its initial state to Signaled or Not-Signaled.

Parameters

Event
Points to an event object, for which the caller provides the storage.
Type
Specifies the event type, either NotificationEvent or SynchronizationEvent.
State
Specifies the initial state of the event. TRUE indicates Signaled.

Comments

A caller cannot wait at raised IRQL for a nonzero interval on an event object or in a nonarbitrary thread context.

Storage for an event object must be resident: in the device extension of a driver-created device object, in the controller extension of a driver-created controller object, or in nonpaged pool allocated by the caller.

Callers of this routine must be running at IRQL PASSIVE_LEVEL.

See Also

KeClearEvent, KeReadStateEvent, KeResetEvent, KeSetEvent, KeWaitForMultipleObjects, KeWaitForSingleObject