We help IT Professionals succeed at work.

Setting the Base Priority of a Delphi Application

bohnet
bohnet asked
on
I am writing a single thread Delphi application...

how do I set the base priority of this application from within the application... setting it from task manager is a pain....
Comment
Watch Question

Commented:
for example:
SetPriorityClass(GetCurrentProcess, HIGH_PRIORITY_CLASS);
A simple SetThreadPriority(GetCurrentThread, THREAD_PRIORITY_LOWEST);
in the OnCreate event should do the trick.

Author

Commented:
thanks....

exactly what I wanted

Explore More ContentExplore courses, solutions, and other research materials related to this topic.