Solved

Set my programs priority level

Posted on 1997-06-22
2
151 Views
Last Modified: 2010-04-04
Hi!

I want to set the priority level of my program, but how.
I would think it would be something like Application.Priority:=Normal.
Thanks!

Chr
0
Comment
Question by:chrb
2 Comments
 
LVL 1

Accepted Solution

by:
ygolan earned 20 total points
Comment Utility
Chr,

Priorties can be adjusted only per thread. If your application contains only one thread (as most applications do), the following code will do the trick :

SetThreadPriority(GetCurrentThread, THREAD_PRIORITY_NORMAL);

You can replace THREAD_PRIORITY_NORMAL with any of the values documented in the SetThreadPriority function. Some of these values are : THREAD_PRIORITY_ABOVE_NORMAL, THREAD_PRIORITY_HIGHEST      etc.
0
 

Author Comment

by:chrb
Comment Utility
Thanks!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 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

9 Experts available now in Live!

Get 1:1 Help Now