delphi application's priority

Posted on 2007-07-20
Last Modified: 2013-12-25

what is the delphi way to change an applications own priority to below_normal.

Question by:zattz
    LVL 19

    Accepted Solution

    use the SetPriorityClass api call:



    SetPriorityClass(GetCurrentProcess, BELOW_NORMAL_PRIORITY_CLASS);

    please note that BELOW_NORMAL_PRIORITY_CLASS is not supported on 95/98/NT/ME. If you target one of these platforms, you can better use IDLE_PRIORITY_CLASS

    for more info see:
    LVL 11

    Assisted Solution

    MerijnB, "uses ShellApi"? I think, it's "windows", not "shellapi" (it's in kernel32.dll, after all) ;)
    LVL 10

    Assisted Solution

    LVL 19

    Expert Comment

    > MerijnB, "uses ShellApi"? I think, it's "windows", not "shellapi" (it's in kernel32.dll, after all) ;)

    oops you're right, my bad. A copy/paste bug :)

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now