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:
wj32
2009-02-28 06:01:20 +00:00
parent 4ceff6ff67
commit 41c776dcf0
2 changed files with 4 additions and 1 deletions
@@ -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
{
+1 -1
View File
@@ -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
{ }