mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +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
|
IN PEPROCESS Process
|
||||||
);
|
);
|
||||||
|
|
||||||
|
NTKERNELAPI
|
||||||
|
BOOLEAN
|
||||||
|
NTAPI
|
||||||
|
PsIsSystemProcess(
|
||||||
|
IN PEPROCESS Process
|
||||||
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Quota Functions
|
// Quota Functions
|
||||||
//
|
//
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue