Link to home
Start Free TrialLog in
Avatar of bohnet
bohnetFlag for United States of America

asked on

Setting the Base Priority of a Delphi Application

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....
ASKER CERTIFIED SOLUTION
Avatar of TOndrej
TOndrej

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of robert_marquardt
robert_marquardt

A simple SetThreadPriority(GetCurrentThread, THREAD_PRIORITY_LOWEST);
in the OnCreate event should do the trick.
Avatar of bohnet

ASKER

thanks....

exactly what I wanted