Solved

Set my programs priority level

Posted on 1997-06-22
2
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
ygolan earned 20 total points
ID: 1337447
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
ID: 1337448
Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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