mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
reintroduced High priority for PH
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@767 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -1184,6 +1184,9 @@ namespace ProcessHacker
|
||||
processP.DictionaryRemoved += new ProcessSystemProvider.ProviderDictionaryRemoved(processP_DictionaryRemoved);
|
||||
processP.Updated -= new ProcessSystemProvider.ProviderUpdateOnce(processP_Updated);
|
||||
|
||||
try { Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High; }
|
||||
catch { }
|
||||
|
||||
if (processP.RunCount >= 1)
|
||||
this.Invoke(new MethodInvoker(delegate
|
||||
{
|
||||
|
||||
@@ -180,7 +180,7 @@ namespace ProcessHacker
|
||||
try
|
||||
{
|
||||
CurrentSessionId = Win32.GetProcessSessionId(System.Diagnostics.Process.GetCurrentProcess().Id);
|
||||
System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.Normal;
|
||||
System.Threading.Thread.CurrentThread.Priority = ThreadPriority.Highest;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user