The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: xandaz on December 05, 2010, 02:46:10 PM

Title: pcPriClassBase of PROCESSENTRY32
Post by: xandaz on December 05, 2010, 02:46:10 PM
      Does anyone know what what are the texted names for the values in pcPriClassBase of PROCESSENTRY32? I've tried the usual Flag names but they have different values ( like: HIGH_PRIORITY_CLASS, etc). Someone feel free to reply. Thanks and byebye :dazzled:
Title: Re: pcPriClassBase of PROCESSENTRY32
Post by: dedndave on December 05, 2010, 03:06:34 PM
QuotepcPriClassBase
    Base priority of threads created by this process.

    Value is always THREAD_PRIORITY_NORMAL

http://msdn.microsoft.com/en-us/library/ms886774.aspx

THREAD_PRIORITY_NORMAL=0

if you want to try other values - look up SetThreadPriority, rather than SetPriorityClass

http://msdn.microsoft.com/en-us/library/ms686277%28VS.85%29.aspx

that is a little confusing, as "priority base" is otherwise used to refer to the process base class
the thread values are refered to as "levels" - not "classes"
Title: Re: pcPriClassBase of PROCESSENTRY32
Post by: xandaz on December 05, 2010, 03:22:48 PM
   Thanks Ded. bye