From 4e858b76943515a0a79dc2cb98476582452ec71c Mon Sep 17 00:00:00 2001 From: short <> Date: Sun, 23 Mar 2003 23:53:03 +0000 Subject: [PATCH] +PsReferencePrimaryToken() +SepCreateSystemProcessToken() --- ntoskrnl/ps/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntoskrnl/ps/process.c b/ntoskrnl/ps/process.c index e7ecc10..aa18361 100644 --- a/ntoskrnl/ps/process.c +++ b/ntoskrnl/ps/process.c @@ -133,6 +133,7 @@ NtOpenProcessToken(IN HANDLE ProcessHandle, return _NtOpenProcessToken(ProcessHandle, DesiredAccess, TokenHandle); } +#endif /* LIBCAPTIVE */ PACCESS_TOKEN STDCALL PsReferencePrimaryToken(PEPROCESS Process) @@ -144,6 +145,7 @@ PsReferencePrimaryToken(PEPROCESS Process) return(Process->Token); } +#ifndef LIBCAPTIVE NTSTATUS PsOpenTokenOfProcess(HANDLE ProcessHandle, @@ -299,9 +301,7 @@ PsInitProcessManagment(VOID) strcpy(PsInitialSystemProcess->ImageFileName, "SYSTEM"); -#ifndef LIBCAPTIVE SepCreateSystemProcessToken(PsInitialSystemProcess); -#endif /* LIBCAPTIVE */ ObCreateHandle(PsInitialSystemProcess, PsInitialSystemProcess, -- 1.8.3.1