set process priority to High

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2902 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2010-03-01 10:00:44 +00:00
parent 0551d76fe7
commit f82ea22767
+3
View File
@@ -139,6 +139,9 @@ INT WINAPI WinMain(
}
}
// Set priority to High.
SetPriorityClass(NtCurrentProcess(), HIGH_PRIORITY_CLASS);
// Activate a previous instance if required.
if (!PhGetIntegerSetting(L"AllowMultipleInstances"))
PhActivatePreviousInstance();