![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2004
Posts: 10
Rep Power: 0
![]() |
Hi, sorry for my por english, hope you'll understand..
I am using this API (with XP) to modify the priority of a process (all is okay) except when i am using the compatible mode (WIN98)..this API doesnt send an error all seems okay but in fact nothings is done no priority modification applyed.. TO do that i have to go in taskmanager and modify manually the priority.. is there a way to change the priority of a process even if this process is in mode compatible WIN98?? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
This says that only 2 values are not supported, ABOVE_NORMAL_PRIORITY_CLASS and BELOW_NORMAL_PRIORITY_CLASS.
Just skip them and go to HIGH_PRIORITY_CLASS or IDLE_PRIORITY_CLASS.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2004
Posts: 10
Rep Power: 0
![]() |
sorry nnxion, i have read the msdn you misunderstand me ..i am using the HIGH priority
what i say is: when we are using the mode compatible, we cant change the priority , the normal priority is always applied, even the API SetPriorityClass is used, no error , but no effect..only manual change in taskmanager.. What i ask: is it possible to change the priority of process by program , process which is launched in compatible mode? |
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Oh you mean Windows XP compatible mode, I don't know about that. Why do you need it to work at compatible mode?
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Aug 2004
Posts: 10
Rep Power: 0
![]() |
i am working on old game Jane's F18, i have done some modification on this program and with a Dll written in C++ i had to change the priority from normal to high , i use this API all seems okay except in Windows XP compatible mode. This mode is used on some computers..dunno why some use the program without compatiblity mode and others have to use the compatibility mode..informatic mysterious
|
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,207
Rep Power: 5
![]() |
Another windows API problem that has nothing to do with C++.
The following is based on something I read somewhere, but I can't find the source right now. If an application has to be run in compatibility mode, odds are it is uses some features that were supported by 98 (if that's being emulated) and are not by XP. Or the application does things that, if allowed unfettered, can affect system stability. Compatibility mode therefore filters out some API calls which have potential to amplify the effects of other actions with potential to affect system stability. Changes of process priority or priority class to high or realtime priority classes are in that category. My suggestion is that you tell the users not to run your application under compatibility mode. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|