How to change the priority of a process?

Can someone provide a sample Delphi code that modifies the process priority class?

I need to get the process by name from the Windows XP task manager and change its priority using delphi code.

+6
source share
1 answer

you must use the SetPriorityClass function.

This function is part of the window, this is a sample.

SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); 
+10
source

Source: https://habr.com/ru/post/904109/


All Articles