The Definitive Native API Guide

Written by wj32.

Native API

NtAlertThread

Alerts the specified thread, causing it to resume execution if it is in an alertable Wait state. Otherwise, the thread is set to an alerted state.

If the specified thread is in a Wait state, it will be unwaited with a status of STATUS_ALERTED. If the function is being called from user-mode, it cannot unwait a kernel-mode wait operation.

NTSYSCALLAPI
NTSTATUS
NTAPI
NtAlertThread(
    __in HANDLE ThreadHandle
    );

Arguments

ThreadHandle

The thread to alert. The handle must have THREAD_ALERT access.

Code paths

Vista SP1: NtAlertThread ... KeAlertThread ... KiUnwaitThread ... KiReadyThread

Exported by

ntdll

NtClose

Closes a handle.

NTSYSCALLAPI
NTSTATUS
NTAPI
NtClose(
    __in HANDLE Handle
    );

Arguments

Handle

The handle to close. If the object referenced by the handle is temporary and has no references, it will be freed.

Code paths

Vista SP1: NtClose ... ObpCloseHandle ... ObpCloseHandleTableEntry ... ExDestroyHandle ... ExpFreeHandleTableEntry

Exported by

ntdll, ntoskrnl