NdisWaitEvent puts the caller into a wait state until the given event is set to the Signaled state or the wait times out.
BOOLEAN
NdisWaitEvent(
IN PNDIS_EVENT Event,
IN UINT MsToWait
);
NdisWaitEvent returns TRUE if the event is in the Signaled state when the wait is satisfied.
Declared in Ndis.h. Include Ndis.h.
NdisWaitEvent returns control to its caller when the given event is signaled or the specified MsToWait interval expires, whichever is sooner. If the event is currently in the Signaled state when this call occurs, NdisWaitEvent returns control immediately.
A miniport driver typically calls NdisWaitEvent from its MiniportInitialize and MiniportHalt functions. A protocol driver typically calls NdisWaitEvent from its ProtocolBindAdapter and ProtocolUnbindAdapter functions.
Callers of NdisWaitEvent must be running at IRQL = PASSIVE_LEVEL.
DriverEntry of NDIS Protocol Drivers, MiniportHalt, MiniportInitialize, NdisInitializeEvent, NdisResetEvent, NdisSetEvent, ProtocolBindAdapter, ProtocolUnbindAdapter