#ifndef _NTPSAPI_H
//
// Threads
//
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#if (PHNT_VERSION >= PHNT_WINDOWS_8)
// rev
/**
* Sends an alert to the specified thread.
*
* \param ThreadId The thread ID of the thread to be alerted.
* \return NTSTATUS Successful or errant status.
*/
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.