Help for this page

Select Code to Download


  1. or download this
    #define NORMAL_PRIORITY_CLASS       0x00000020
    #define IDLE_PRIORITY_CLASS         0x00000040
    ...
    # Win2000
    #define BELOW_NORMAL_PRIORITY_CLASS 0x00004000
    #define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
    
  2. or download this
    BEGIN {
        use Win32::API;
    ...
        Win32::API::->Import("kernel32","BOOL SetPriorityClass(HANDLE hPro
    +cess, DWORD dwPriorityClass)");
        SetPriorityClass(GetCurrentProcess(),0x00004000);
    }