Re: twapi again - mapping from numerical values to enumeration "names" ...
- From: "MartinLemburg@UGS" <martin.lemburg.ugs@xxxxxxx>
- Date: Wed, 25 Jul 2007 04:06:37 -0700
Thanks for your explainations!
Know I understand more about this priorities!
And you are right! After taking a look on the msdn page, I see the
problem you've mentioned.
Best regards,
Martin
On Jul 25, 4:47 am, "palm...@xxxxxxxxx" <palm...@xxxxxxxxx> wrote:
Martin,
The symbolic names accepted by the create_process -basepriority
options are actually priority classes, not priorities (perhaps the
option could have been named better).
The priority of a thread is a combination of the priority class for
its process and the thread's priority level (within the class).
It is not likely that twapi will map these priorities to symbolic
names because (a) I think they are more useful left as integers (eg.
to compare relative priorities), (b) there are too many possible
combinations to name. Seehttp://msdn2.microsoft.com/en-us/library/ms685100.aspx
for a more detailed explanation which also describes priority 8.
/Ashok
On Jul 24, 1:43 pm, "MartinLemburg@UGS" <martin.lemburg....@xxxxxxx>
wrote:
Hello,
I use twapi to get some information from the system, like from
processes e.g. the base priority, from threads the state or wait
state, etc..
Looking at a twapi command like create_process, where the priority is
given by a string like "belownormal", I really would like to map e.g.
the base priority of a process (get_process_info -basepriority) back
to a string.
But I don't know enough about this WIN32 internal things, but that
there is no priorty define equal to the integer 8.
Is there a chance to map some of the integer values of states,
priorities, etc. to strings, or may it be implemented in future
versions of twapi to provide strings/tokens and to request strings/
tokens?
Best regards,
Martin
.
- References:
- twapi again - mapping from numerical values to enumeration "names" ...
- From: MartinLemburg@UGS
- Re: twapi again - mapping from numerical values to enumeration "names" ...
- From: palmtcl@xxxxxxxxx
- twapi again - mapping from numerical values to enumeration "names" ...
- Prev by Date: How do I edit Wiki Pages?
- Next by Date: Re: Any package known to read IPTC meta data from JPEGs
- Previous by thread: Re: twapi again - mapping from numerical values to enumeration "names" ...
- Next by thread: Re: Really strange performance problem with string map vs regsub
- Index(es):
Relevant Pages
|
Loading