mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 18:51:52 +00:00
- Set high priority class for winlogon.exe
svn path=/trunk/; revision=41390
This commit is contained in:
parent
c8e1416240
commit
3f9540dadd
1 changed files with 14 additions and 0 deletions
|
@ -639,6 +639,7 @@ CsrpRunWinlogon (int argc, char ** argv, char ** envp)
|
||||||
UNICODE_STRING CommandLine;
|
UNICODE_STRING CommandLine;
|
||||||
PRTL_USER_PROCESS_PARAMETERS ProcessParameters = NULL;
|
PRTL_USER_PROCESS_PARAMETERS ProcessParameters = NULL;
|
||||||
RTL_USER_PROCESS_INFORMATION ProcessInfo;
|
RTL_USER_PROCESS_INFORMATION ProcessInfo;
|
||||||
|
PROCESS_PRIORITY_CLASS PriorityClass;
|
||||||
|
|
||||||
|
|
||||||
DPRINT("CSR: %s called\n", __FUNCTION__);
|
DPRINT("CSR: %s called\n", __FUNCTION__);
|
||||||
|
@ -674,6 +675,19 @@ CsrpRunWinlogon (int argc, char ** argv, char ** envp)
|
||||||
DPRINT1("SM: %s: loading winlogon.exe failed (Status=%08lx)\n",
|
DPRINT1("SM: %s: loading winlogon.exe failed (Status=%08lx)\n",
|
||||||
__FUNCTION__, Status);
|
__FUNCTION__, Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PriorityClass.PriorityClass = PROCESS_PRIORITY_CLASS_HIGH;
|
||||||
|
PriorityClass.Foreground = FALSE;
|
||||||
|
|
||||||
|
/* Set priority for process */
|
||||||
|
if (!NT_SUCCESS(NtSetInformationProcess(ProcessInfo.ProcessHandle,
|
||||||
|
ProcessPriorityClass,
|
||||||
|
&PriorityClass,
|
||||||
|
sizeof(PROCESS_PRIORITY_CLASS))))
|
||||||
|
{
|
||||||
|
DPRINT1("Unable to set process priority for winlogon.exe\n");
|
||||||
|
}
|
||||||
|
|
||||||
ZwResumeThread(ProcessInfo.ThreadHandle, NULL);
|
ZwResumeThread(ProcessInfo.ThreadHandle, NULL);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue