Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change priority of a console app

Status
Not open for further replies.

SuperHebbe

Programmer
Dec 25, 2005
6
NO
Hi

I'm using this code to change the priority of my prog. Is it safe to use? Seems to work :)
Code:
struct hProcess *pr;

pr = GetCurrentProcess ();
SetPriorityClass (pr, BELOW_NORMAL_PRIORITY_CLASS);

SuperHebbe

 
Safe in what way? I don't see any problems with it.
 
Ahh good... It was just some guy that told me that it was difficult to change the priority the proper way.. But I have tested it on 6 different computers now, and it seems to work :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top