HKLM\SYSTEM\CurrentControlSet\Control\
The entries in the PriorityControl subkey determine the relative priority of foreground (active) applications to background (inactive) applications.