#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
NTSYSCALLAPI
NTSTATUS
NTAPI
NtReleaseKeyedEvent(
_In_opt_ HANDLE KeyedEventHandle,
_In_ PVOID KeyValue,
_In_ BOOLEAN Alertable,
_In_opt_ PLARGE_INTEGER Timeout
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwReleaseKeyedEvent(
_In_opt_ HANDLE KeyedEventHandle,
_In_ PVOID KeyValue,
_In_ BOOLEAN Alertable,
_In_opt_ PLARGE_INTEGER Timeout
);
View code on GitHub
This function is used for signal KeyedEvent
object with value specified as Key
parameter. If there are no other thread (or threads) waiting for the same KeyedEvent
with the same Key
value, waiting is performed up to NtWaitForKeyedEvent
called by any other thread.
HANDLE
to KeyedEvent
object.
Value used as KEY. Note that this value has to have lowest bit cleared (must divide by two).
If set, waiting can be broken by alerting thread.
Optional pointer for timeout value.