Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 19th, 2005, 12:53 AM   #1
tedbauer
Newbie
 
Join Date: Aug 2005
Posts: 6
Rep Power: 0 tedbauer is on a distinguished road
Get base priority of a program

Hi all:


DOes anybody know how to determine the base priority of a program, something like this WinID does http://www.dennisbabkin.com/php/download.php?what=WinID
It's an interesting piece of software, I ran it on my WinXP and it shows that task bar has base priority higher than normal programs, as well as task manager -- I didn't know that. Also is it possible to set this base priority?

Any help will be appreciated!


PS. Search in MSDN did not yeild any ways to do it....
tedbauer is offline   Reply With Quote
Old Aug 19th, 2005, 9:00 AM   #2
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
Look inot these API's to start with:

These work at the thread level --
GetThreadPriority
SetThreadPriority

Process level:
GetPriorityClass
SetPriorityClass
jim mcnamara is offline   Reply With Quote
Old Aug 20th, 2005, 3:52 PM   #3
tedbauer
Newbie
 
Join Date: Aug 2005
Posts: 6
Rep Power: 0 tedbauer is on a distinguished road
Quote:
Originally Posted by jim mcnamara
Look inot these API's to start with:

These work at the thread level --
GetThreadPriority
SetThreadPriority

Process level:
GetPriorityClass
SetPriorityClass
Thanks, but still how to get base priority out of priority level and class those functions return?
tedbauer is offline   Reply With Quote
Old Aug 20th, 2005, 7:28 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Please do not cross post. It is against the forum's rules. If you think you made an initial mistake in placement, ask a mod to move it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:13 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC