mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
- Implement and export PsIsSystemProcess and add it to the NDK
svn path=/trunk/; revision=36509
This commit is contained in:
parent
d2abe18c98
commit
ccd25605a6
3 changed files with 19 additions and 1 deletions
|
@ -136,6 +136,13 @@ PsIsProtectedProcess(
|
|||
IN PEPROCESS Process
|
||||
);
|
||||
|
||||
NTKERNELAPI
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
PsIsSystemProcess(
|
||||
IN PEPROCESS Process
|
||||
);
|
||||
|
||||
//
|
||||
// Quota Functions
|
||||
//
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1155,6 +1155,17 @@ PsIsProcessBeingDebugged(PEPROCESS Process)
|
|||
return Process->DebugPort != NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
PsIsSystemProcess(IN PEPROCESS Process)
|
||||
{
|
||||
/* Return if this is the System Process */
|
||||
return Process == PsInitialSystemProcess;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue