Click to See Complete Forum and Search --> : Changing Process Priority without CreateProcess()


PeterK
March 30th, 1999, 12:15 PM
Is it possible to change the priority of a process to either:

HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS,

NORMAL_PRIORITY_CLASS or REALTIME_PRIORITY_CLASS

when you are not using CreateProcess()?


I have SDI and Dialog based applications created by the Class

Wizard.


Is there anyway to dynamically change the priority of my process?

Djibril
May 17th, 1999, 01:40 PM
You can change the priority of the current process with:

SetPriorityClass(AfxGetApp(), XXX_PRIORITY_CLASS);


Where there is a WISH, there is a WILL.