The ZwSetEvent routine sets an event object to a Signaled state and attempts to satisfy as many waits as possible.
NTSYSAPI NTSTATUS ZwSetEvent( HANDLE EventHandle, PLONG PreviousState );
A handle to an event object.
An optional pointer to a variable where the previous state of the event object is stored on output.
ZwSetEvent returns STATUS_SUCCESS or an appropriate error status. Possible error status codes include the following:
||The caller did not have the required privileges to modify the event specified by the EventHandle parameter.|
||Resources required by this function could not be allocated.|
||The supplied EventHandle parameter was invalid.|
ZwSetEvent sets an event object to a Signaled state and attempts to satisfy as many waits as possible.
|Minimum supported client||Available in Windows XP and later versions of Windows.|
|Header||ntifs.h (include Ntifs.h)|