Archive: Set Priority again


Set Priority again
?
!define NORMAL_PRIORITY_CLASS 0x00000020
!define IDLE_PRIORITY_CLASS 0x00000040
!define HIGH_PRIORITY_CLASS 0x00000080
!define REALTIME_PRIORITY_CLASS 0x00000100

Is It right ?
idle = 40
normal = 20 and
high = 80

Can I set 10 ?


If you are talking about Windows defines (winbase.h header in VC++):

[skip]
//
// dwCreationFlag values
//

#define DEBUG_PROCESS 0x00000001
#define DEBUG_ONLY_THIS_PROCESS 0x00000002

#define CREATE_SUSPENDED 0x00000004

#define DETACHED_PROCESS 0x00000008

#define CREATE_NEW_CONSOLE 0x00000010

#define NORMAL_PRIORITY_CLASS 0x00000020
#define IDLE_PRIORITY_CLASS 0x00000040
#define HIGH_PRIORITY_CLASS 0x00000080
#define REALTIME_PRIORITY_CLASS 0x00000100

#define CREATE_NEW_PROCESS_GROUP 0x00000200
#define CREATE_UNICODE_ENVIRONMENT 0x00000400

#define CREATE_SEPARATE_WOW_VDM 0x00000800
#define CREATE_SHARED_WOW_VDM 0x00001000
#define CREATE_FORCEDOS 0x00002000
[skip]
So those are flags, not priority values.