![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 6
Rep Power: 0
![]() |
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.... |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 852
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2005
Posts: 6
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Aug 2005
Posts: 6
Rep Power: 0
![]() |
Thank you smartass, you're "really helpfull".
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#7 |
|
Newbie
Join Date: Aug 2005
Posts: 6
Rep Power: 0
![]() |
Ha-ha..... one angry mofo. Hope you don't look like that on avatar :eek:
What's your problem wookie? |
|
|
|
|
|
#8 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|