Expose system process object

This commit is contained in:
2026-07-09 08:54:22 +02:00
parent 34acfe2b8b
commit 7db52a816f
3 changed files with 22 additions and 0 deletions

View File

@@ -64,3 +64,18 @@ PS::Process::GetCurrentProcess(VOID)
/* Return the current process */
return (PEPROCESS)KE::Processor::GetCurrentThread()->ApcState.Process;
}
/**
* Returns a pointer to the primary system process object.
*
* @return This routine returns a pointer to the system process object.
*
* @since XT 1.0
*/
XTFASTCALL
PEPROCESS
PS::Process::GetSystemProcess(VOID)
{
/* Return the system process */
return SystemProcess;
}