Author: sginsberg
Date: Thu Sep 25 09:39:38 2008
New Revision: 36509
URL:
http://svn.reactos.org/svn/reactos?rev=36509&view=rev
Log:
- Implement and export PsIsSystemProcess and add it to the NDK
Modified:
trunk/reactos/include/ndk/psfuncs.h
trunk/reactos/ntoskrnl/ntoskrnl.spec
trunk/reactos/ntoskrnl/ps/process.c
Modified: trunk/reactos/include/ndk/psfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/psfuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] Thu Sep 25 09:39:38 2008
@@ -133,6 +133,13 @@
BOOLEAN
NTAPI
PsIsProtectedProcess(
+ IN PEPROCESS Process
+);
+
+NTKERNELAPI
+BOOLEAN
+NTAPI
+PsIsSystemProcess(
IN PEPROCESS Process
);
Modified: trunk/reactos/ntoskrnl/ntoskrnl.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl.spec?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ntoskrnl.spec [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ntoskrnl.spec [iso-8859-1] Thu Sep 25 09:39:38 2008
@@ -988,7 +988,7 @@
@ stdcall PsImpersonateClient(ptr ptr long long long)
@ extern PsInitialSystemProcess
@ stdcall PsIsProcessBeingDebugged(ptr)
-;PsIsSystemProcess
+@ stdcall PsIsSystemProcess(ptr)
@ stdcall PsIsSystemThread(ptr)
@ stdcall PsIsThreadImpersonating(ptr)
@ stdcall PsIsThreadTerminating(ptr)
Modified: trunk/reactos/ntoskrnl/ps/process.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/process.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/process.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/process.c [iso-8859-1] Thu Sep 25 09:39:38 2008
@@ -1158,6 +1158,17 @@
/*
* @implemented
*/
+BOOLEAN
+NTAPI
+PsIsSystemProcess(IN PEPROCESS Process)
+{
+ /* Return if this is the System Process */
+ return Process == PsInitialSystemProcess;
+}
+
+/*
+ * @implemented
+ */
VOID
NTAPI
PsSetProcessPriorityClass(PEPROCESS Process,