Как назначить программе другой приоритет?
|
HANDLE ProcessHandle, ThreadHandle; DWORD ProcessID = GetCurrentProcessId(); ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS,false,ProcessID); SetPriorityClass(ProcessHandle,HIGH_PRIORITY_CLASS); ThreadHandle = GetCurrentThread(); SetThreadPriority(ThreadHandle,THREAD_PRIORITY_TIME_CRITICAL);
|