Written by wj32.
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
);
The thread to alert. The handle must have THREAD_ALERT access.
Vista SP1: NtAlertThread ... KeAlertThread ... KiUnwaitThread ... KiReadyThread
ntdll
Closes a handle.
NTSYSCALLAPI
NTSTATUS
NTAPI
NtClose(
__in HANDLE Handle
);
The handle to close. If the object referenced by the handle is temporary and has no references, it will be freed.
Vista SP1: NtClose ... ObpCloseHandle ... ObpCloseHandleTableEntry ... ExDestroyHandle ... ExpFreeHandleTableEntry
ntdll, ntoskrnl