#ifndef _NTPSAPI_H
// Threads
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#if (PHNT_VERSION >= PHNT_WIN8)
// rev
NTSYSCALLAPI
NTSTATUS
NTAPI
NtAlertThreadByThreadId(
_In_ HANDLE ThreadId
);
View code on GitHub#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwAlertThreadByThreadId(
_In_ HANDLE ThreadId
);
View code on GitHubWakes another thread that previously called NtWaitForAlertByThreadId.
ThreadId - the ID of the thread to wake. The thread must belong to the same process as the caller.Despite the name, NtAlertThread and alertable waits via NtDelayExecution are unrelated to this functionality.
This function was introduced in Windows 8.