title: How to change the memory priority of a scheduled task?
body: <p>When starting my program without Task Scheduler, it has memory priority of 5 like all other programs running in my system (Windows 7).</p>
  
  <p>But when running under Task Scheduler, it has memory priority of 4, and it impact performance.</p>
  
  <p>Note! Process priority is Normal (CPU Priority 8) so this is not the problem! Only memory priority is the problem!</p>
  
  <p>Process Explorer screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/Z3a8f.png" alt="Memory Priority 4, Process Explorer"></p>
  
  <p>How to change the memory priority of a scheduled task to 5? Win32 API is an acceptable solution.</p>