NtAlertThread - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPSAPI_H
//
// Threads
//
#if (PHNT_MODE != PHNT_MODE_KERNEL)

/**
 * The NtAlertThread routine alerts the specified thread.
 *
 * \param[in] ThreadHandle A handle to the thread to be alerted.
 * \return NTSTATUS Successful or errant status.
 */
NTSYSCALLAPI
NTSTATUS
NTAPI
NtAlertThread(
    _In_ HANDLE ThreadHandle
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwAlertThread(
    _In_ HANDLE ThreadHandle
    );

#endif

View code on GitHub

NtDoc

Alerts and wakes the specified thread that previously entered an alertable wait, causing it to return STATUS_ALERTED.

Parameters

Remarks

Despite the name similarity, this function is unrelated to NtAlertThreadByThreadId.

Related Win32 API

This functionality is not exposed in Win32 API.

See also

NTinternals.net (undocumented.ntinternals.net)

ThreadHandle

Handle to opened Thread Object.


NtAlertThread puts specified thread in alerted state.

Documented by

See also