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

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.

  • Comment on Re^9: SetPriorityClass(). An explanation of code please.