Re: twapi again - mapping from numerical values to enumeration "names" ...



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


.



Relevant Pages

  • Re: manipulation and memory allocation
    ... There aren't definite rules about how to manage memory. ... The first priority is for the code to do what it is designed to do. ... So when designing the interface to a function, think, "what does this ... "what happens if I am passed a giant string?". ...
    (comp.lang.c)
  • Re: Number to fractional string intermittently wrong
    ... OK, two updates: ... I ran the tool suggested by Alten in both modes it has and it didn't find any memory faults. ... Increase the priority of the VI or change the execution system of the VI to be something other than Standard: ... http://forums.ni.com/attachments/ni/170/245912/1/Number to string bug.PNG ...
    (comp.lang.labview)
  • RE: Priority Change Update all records
    ... The Previous Priority ... Dim pstrSql As String ... Dim pstrOpr1 As String ...
    (microsoft.public.access.modulesdaovba)
  • Somewhat complex group by query
    ... I have one table with these columns: RowID, Priority, Country, ... i need a procedure that returns which string is ...
    (microsoft.public.access.queries)
  • Re: twapi again - mapping from numerical values to enumeration "names" ...
    ... options are actually priority classes, ... It is not likely that twapi will map these priorities to symbolic ... given by a string like "belownormal", I really would like to map e.g. ...
    (comp.lang.tcl)

Loading