#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The NtClearEvent routine sets an event object to the not-signaled state.
*
* @param EventHandle A handle to the event object.
* @return NTSTATUS Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtClearEvent(
_In_ HANDLE EventHandle
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwClearEvent(
_In_ HANDLE EventHandle
);
View code on GitHub
HANDLE
to Event Object opened with EVENT_MODIFY_STATE
attribute.
There're no functional difference between NtClearEvent
and NtResetEvent
, but the first works faster (see NtResetEvent
).