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