From 63c85c8a49fa4ce0d132ef9e676d4ec5b48d5daa Mon Sep 17 00:00:00 2001 From: wj32 Date: Tue, 14 Jul 2009 05:02:28 +0000 Subject: [PATCH] added Native API documentation project beginnings... git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1600 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- trunk/native.html | 82 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 trunk/native.html diff --git a/trunk/native.html b/trunk/native.html new file mode 100644 index 000000000..6f357339e --- /dev/null +++ b/trunk/native.html @@ -0,0 +1,82 @@ + + + + The Definitive Native API Guide + + + +

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

+ + + +