From: short <> Date: Sun, 23 Mar 2003 23:53:03 +0000 (+0000) Subject: +PsReferencePrimaryToken() X-Git-Tag: captive-0_2~49 X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=commitdiff_plain;h=4e858b76943515a0a79dc2cb98476582452ec71c +PsReferencePrimaryToken() +SepCreateSystemProcessToken() --- 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,