Author: ion
Date: Thu Jul 20 09:37:12 2006
New Revision: 23180
URL:
http://svn.reactos.org/svn/reactos?rev=23180&view=rev
Log:
[AUDIT]
- 90% of the functions in this file are 1 line functions which set or get a value from
ETHREAD.
- The other 4 functions are related to User and System Thread Startup APCs, which are
documented in gruesome detail and pseudo-code in Windows Internals 4 and Windows Internals
II, as well as the main Thread Creation routine (PspCreateThread) which is one of the most
well documented internal routines of NT. Code was developped in conjuction with WI4 and WI
II.
Modified:
trunk/reactos/ntoskrnl/ps/thread.c (contents, props changed)
Modified: trunk/reactos/ntoskrnl/ps/thread.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/thread.c?rev=2…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/thread.c (original)
+++ trunk/reactos/ntoskrnl/ps/thread.c Thu Jul 20 09:37:12 2006
@@ -469,7 +469,7 @@
*/
ULONG
NTAPI
-PsGetThreadFreezeCount(PETHREAD Thread)
+PsGetThreadFreezeCount(IN PETHREAD Thread)
{
return Thread->Tcb.FreezeCount;
}
@@ -479,7 +479,7 @@
*/
BOOLEAN
NTAPI
-PsGetThreadHardErrorsAreDisabled(PETHREAD Thread)
+PsGetThreadHardErrorsAreDisabled(IN PETHREAD Thread)
{
return Thread->HardErrorsAreDisabled;
}
@@ -489,7 +489,7 @@
*/
HANDLE
NTAPI
-PsGetThreadId(PETHREAD Thread)
+PsGetThreadId(IN PETHREAD Thread)
{
return Thread->Cid.UniqueThread;
}
@@ -499,7 +499,7 @@
*/
PEPROCESS
NTAPI
-PsGetThreadProcess(PETHREAD Thread)
+PsGetThreadProcess(IN PETHREAD Thread)
{
return Thread->ThreadsProcess;
}
@@ -509,7 +509,7 @@
*/
HANDLE
NTAPI
-PsGetThreadProcessId(PETHREAD Thread)
+PsGetThreadProcessId(IN PETHREAD Thread)
{
return Thread->Cid.UniqueProcess;
}
@@ -519,7 +519,7 @@
*/
HANDLE
NTAPI
-PsGetThreadSessionId(PETHREAD Thread)
+PsGetThreadSessionId(IN PETHREAD Thread)
{
return (HANDLE)Thread->ThreadsProcess->Session;
}
@@ -529,7 +529,7 @@
*/
PTEB
NTAPI
-PsGetThreadTeb(PETHREAD Thread)
+PsGetThreadTeb(IN PETHREAD Thread)
{
return Thread->Tcb.Teb;
}
@@ -539,7 +539,7 @@
*/
PVOID
NTAPI
-PsGetThreadWin32Thread(PETHREAD Thread)
+PsGetThreadWin32Thread(IN PETHREAD Thread)
{
return Thread->Tcb.Win32Thread;
}
Propchange: trunk/reactos/ntoskrnl/ps/thread.c
------------------------------------------------------------------------------
--- svn:needs-lock (original)
+++ svn:needs-lock (removed)
@@ -1,1 +1,0 @@
-*