+SepCreateSystemProcessToken()
return _NtOpenProcessToken(ProcessHandle, DesiredAccess, TokenHandle);
}
+#endif /* LIBCAPTIVE */
PACCESS_TOKEN STDCALL
PsReferencePrimaryToken(PEPROCESS Process)
return(Process->Token);
}
+#ifndef LIBCAPTIVE
NTSTATUS
PsOpenTokenOfProcess(HANDLE ProcessHandle,
strcpy(PsInitialSystemProcess->ImageFileName, "SYSTEM");
-#ifndef LIBCAPTIVE
SepCreateSystemProcessToken(PsInitialSystemProcess);
-#endif /* LIBCAPTIVE */
ObCreateHandle(PsInitialSystemProcess,
PsInitialSystemProcess,