ZwSetEvent function (ntifs.h)
The ZwSetEvent routine sets an event object to a Signaled state and attempts to satisfy as many waits as possible.
Syntax
NTSYSAPI NTSTATUS ZwSetEvent(
[in] HANDLE EventHandle,
[out, optional] PLONG PreviousState
);
Parameters
[in] EventHandle
A handle to an event object.
[out, optional] PreviousState
An optional pointer to a variable where the previous state of the event object is stored on output.
Return value
ZwSetEvent returns STATUS_SUCCESS or an appropriate error status. Possible error status codes include the following:
Return code | Description |
---|---|
|
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. |
Remarks
ZwSetEvent sets an event object to a Signaled state and attempts to satisfy as many waits as possible.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP |
Target Platform | Universal |
Header | ntifs.h (include Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |
See also
Using Nt and Zw Versions of the Native System Services Routines