+PsReferencePrimaryToken()
authorshort <>
Sun, 23 Mar 2003 23:53:03 +0000 (23:53 +0000)
committershort <>
Sun, 23 Mar 2003 23:53:03 +0000 (23:53 +0000)
+SepCreateSystemProcessToken()

ntoskrnl/ps/process.c

index e7ecc10..aa18361 100644 (file)
@@ -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,