Help for this page

Select Code to Download


  1. or download this
    THREAD_PRIORITY_HIGHEST         -1
    THREAD_PRIORITY_ABOVE_NORMAL    null
    ...
    THREAD_PRIORITY_BELOW_NORMAL    1
    THREAD_PRIORITY_IDLE            2147483647
    THREAD_PRIORITY_LOWEST          -15
    
  2. or download this
    Description   Process priority  Thread Priority
    Realtime          256              15
    ...
    Below normal    16384              -1
    Idle               64              -2
    Lowest            n/a             -15
    
  3. or download this
    $returncode=Win32::Process::Open($obj,$pid,0);
    print "\n $returncode \n";
    $returncode=$obj->SetPriorityClass(THREAD_PRIORITY_LOWEST);
    print "\n $returncode \n";
    
  4. or download this
    $returncode=$obj->SetPriorityClass(32);