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:51 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, 3:03 AM   #2
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 852
Rep Power: 4 The Dark is on a distinguished road
Use the GetPriorityClass and SetPriorityClass functions to get and set the priority of a process. You need to find the process handle.

PS. No need to put your question in multiple times in different areas of the forum.
The Dark is offline   Reply With Quote
Old Aug 20th, 2005, 3:50 PM   #3
tedbauer
Newbie
 
Join Date: Aug 2005
Posts: 6
Rep Power: 0 tedbauer is on a distinguished road
Thanks! I checked both GetPriorityClass and SetPriorityClass functions in the MSDN. It's still not clear for me how to get base priority out of priority class? Or, are those the same?

Sorry, I didn;t mean to post in different areas, I'm just desperate to find an answer -- I'm totally confused.
tedbauer is offline   Reply With Quote
Old Aug 20th, 2005, 7:30 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Desperate people rob banks. It doesn't make it compliant with rules and laws.
__________________
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
Old Aug 22nd, 2005, 3:38 PM   #5
tedbauer
Newbie
 
Join Date: Aug 2005
Posts: 6
Rep Power: 0 tedbauer is on a distinguished road
Thank you smartass, you're "really helpfull".
tedbauer is offline   Reply With Quote
Old Aug 22nd, 2005, 4:39 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You got more than you paid for, and your rudeness in posting without reading the guidelines was repaid in kind. I can't actually see you on a streetcorner in Tempe being a lazy ass spanger, but you're definitely a thoughtless type who thinks their personal priorities trump all else. Grow up and learn not to cop out and make excuses when you fuck up.
__________________
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
Old Aug 22nd, 2005, 6:03 PM   #7
tedbauer
Newbie
 
Join Date: Aug 2005
Posts: 6
Rep Power: 0 tedbauer is on a distinguished road
Ha-ha..... one angry mofo. Hope you don't look like that on avatar :eek:

What's your problem wookie?
tedbauer is offline   Reply With Quote
Old Aug 22nd, 2005, 6:30 PM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Dumbasses named bauer is my problem, but it's only a nit. I won't lose any sleep over you, I just don't let worthless shitbirds slide by with no comment.
__________________
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 1:55 PM.

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