#define NORMAL_PRIORITY_CLASS 0x00000020 #define IDLE_PRIORITY_CLASS 0x00000040 #define HIGH_PRIORITY_CLASS 0x00000080 #define REALTIME_PRIORITY_CLASS 0x00000100 # Win2000 #define BELOW_NORMAL_PRIORITY_CLASS 0x00004000 #define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
BEGIN { use Win32::API; Win32::API::->Import("kernel32","HANDLE GetCurrentProcess()"); Win32::API::->Import("kernel32","BOOL SetPriorityClass(HANDLE hPro +cess, DWORD dwPriorityClass)"); SetPriorityClass(GetCurrentProcess(),0x00004000); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use less 'CPU';
by Anonymous Monk on Mar 22, 2004 at 17:56 UTC | |
|
Re: use less 'CPU';
by hardburn (Abbot) on Mar 22, 2004 at 15:03 UTC | |
|
Re: use less 'CPU';
by flyingmoose (Priest) on Mar 22, 2004 at 18:26 UTC | |
by Abigail-II (Bishop) on Mar 23, 2004 at 15:31 UTC | |
|
Re: use less 'CPU';
by eserte (Deacon) on Mar 22, 2004 at 15:37 UTC | |
by Anonymous Monk on Mar 22, 2004 at 18:01 UTC | |
by eserte (Deacon) on Mar 23, 2004 at 15:27 UTC |