title: How to Disable UWP App Suspension?
body: <p>I am using C# to develop a UWP app for Windows 10 running only on desktop computers, targeting platform version 10.0.14393.0. Due to business requirements, the app lifecycle must behave like a traditional Win32 application.</p>
  
  <p>Therefore, I followed the recommendation from <a href="https://docs.microsoft.com/en-us/windows/uwp/launch-resume/run-minimized-with-extended-execution#run-while-minimized" rel="noreferrer">this article</a> to request an <code>ExtendedExecutionSession</code>  with <code>ExtendedExecutionReason.Unspecified</code>. I also configured Windows to never sleep and never hibernate.</p>
  
  <p>Still, on rare occasions, Windows will revoke the extended execution session with reason <code>SystemPolicy</code> and then proceed to suspend the UWP app.</p>
  
  <p>Two questions:</p>
  
  <ol>
  <li>How can I get more information (system logs? event logs?) regarding what led to Windows revoking the extended execution session?</li>
  <li>How can I get rid of these rare cases of suspensions so that the UWP app lifecycle behaves exactly like Win32 applications (that is, stay running until user explicitly stops it from running)?</li>
  </ol>
  
  <p>Thanks!</p>