Can anyone provide a Delphi example of code that changes the priority class of a process?
I need to get the process by name from the Windows XP Task manager and change its priority using delphi code.
Can anyone provide a Delphi example of code that changes the priority class of a process?
I need to get the process by name from the Windows XP Task manager and change its priority using delphi code.
you must use the SetPriorityClass function.
This function is part of the windows unit, this is a sample
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);