#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The NtReleaseKeyedEvent routine releases a thread that is waiting on a keyed event with the specified key value.
*
* \param KeyedEventHandle Optional handle to the keyed event object. If NULL, the default keyed event is used.
* \param KeyValue The key value that identifies the waiting thread to release.
* \param Alertable Specifies whether the call is alertable (can be interrupted by APCs).
* \param Timeout Optional pointer to a timeout value (in 100-nanosecond intervals). If NULL, waits indefinitely.
* \return NTSTATUS Successful or errant status.
*/
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
No description available.
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.