in reply to Re^7: SetPriorityClass(). An explanation of code please.
in thread SetPriorityClass(). An explanation of code please.

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^8: SetPriorityClass(). An explanation of code please.

Replies are listed 'Best First'.
Re^9: SetPriorityClass(). An explanation of code please.
by fishbot_v2 (Chaplain) on Mar 23, 2006 at 21:28 UTC

    What do you mean "when the program is activated"?

    Priority classes are an attribute of the process. You can change the priority class during the run, but you need to talk to the Win32 kernel to do that. I'm glossing, but pre-emptive multitasking will only allocate timeslices to an IDLE process when the machine would otherwise be idling. Google around on the Win32 kernel, and do some homework.