- Implement and export PsIsSystemProcess and add it to the NDK

svn path=/trunk/; revision=36509
This commit is contained in:
Stefan Ginsberg 2008-09-25 14:39:38 +00:00
parent d2abe18c98
commit ccd25605a6
3 changed files with 19 additions and 1 deletions

View file

@ -136,6 +136,13 @@ PsIsProtectedProcess(
IN PEPROCESS Process IN PEPROCESS Process
); );
NTKERNELAPI
BOOLEAN
NTAPI
PsIsSystemProcess(
IN PEPROCESS Process
);
// //
// Quota Functions // Quota Functions
// //

View file

@ -988,7 +988,7 @@
@ stdcall PsImpersonateClient(ptr ptr long long long) @ stdcall PsImpersonateClient(ptr ptr long long long)
@ extern PsInitialSystemProcess @ extern PsInitialSystemProcess
@ stdcall PsIsProcessBeingDebugged(ptr) @ stdcall PsIsProcessBeingDebugged(ptr)
;PsIsSystemProcess @ stdcall PsIsSystemProcess(ptr)
@ stdcall PsIsSystemThread(ptr) @ stdcall PsIsSystemThread(ptr)
@ stdcall PsIsThreadImpersonating(ptr) @ stdcall PsIsThreadImpersonating(ptr)
@ stdcall PsIsThreadTerminating(ptr) @ stdcall PsIsThreadTerminating(ptr)

View file

@ -1155,6 +1155,17 @@ PsIsProcessBeingDebugged(PEPROCESS Process)
return Process->DebugPort != NULL; return Process->DebugPort != NULL;
} }
/*
* @implemented
*/
BOOLEAN
NTAPI
PsIsSystemProcess(IN PEPROCESS Process)
{
/* Return if this is the System Process */
return Process == PsInitialSystemProcess;
}
/* /*
* @implemented * @implemented
*/ */