#ifndef _NTPSAPI_H
//
// Threads
//
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* Sends an alert to the specified thread.
*
* @param ThreadHandle A handle to the thread to be alerted.
* @return NTSTATUS Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtAlertThread(
_In_ HANDLE ThreadHandle
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwAlertThread(
_In_ HANDLE ThreadHandle
);
View code on GitHub
Alerts and wakes the specified thread that previously entered an alertable wait, causing it to return STATUS_ALERTED
.
ThreadHandle
- a handle to a thread granting THREAD_ALERT
access.Despite the name similarity, this function is unrelated to NtAlertThreadByThreadId
.
This functionality is not exposed in Win32 API.