// ndis.h
VOID NdisInitializeEvent(
[out] PNDIS_EVENT Event
);
View the official Windows Driver Kit DDI referenceNo description available.
The NdisInitializeEvent function sets up an event object during driver initialization to be used subsequently as a synchronization mechanism.
Event [out]A pointer to caller-supplied storage for the event object, which is opaque to drivers.
The NdisInitializeEvent function creates an event object that has an event type of NotificationEvent and an initial state of not-signaled. For more information about notification events, see Defining and Using an Event Object.
The Event pointer passed to NdisInitializeEvent is a required parameter to all other NdisXxxEvent functions.
While driver functions that must run at IRQL <= DISPATCH_LEVEL can call the NdisSetEvent and NdisResetEvent functions ,calling NdisWaitEvent from any IRQL > PASSIVE_LEVEL is a fatal error.