added WPF render switches via app.config

This commit is contained in:
Oliver Kieselbach
2026-03-08 22:01:16 +01:00
parent 4f1760d41a
commit 264b68fff4
2 changed files with 11 additions and 1 deletions
@@ -1 +1 @@
340
342
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<!-- Allow WPF to render even when no display devices are detected or the window station
appears non-interactive. Required for CreateProcessAsUser from SYSTEM during Autopilot
enrollment while the Hello screen is still active on the user's desktop. Without these
switches, wpfgfx DLL init fails with 0x8007045A (ERROR_DLL_INIT_FAILED). -->
<AppContextSwitchOverrides value="Switch.System.Windows.Media.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable=true;Switch.System.Windows.Media.ShouldNotRenderInNonInteractiveWindowStation=false"/>
</runtime>
</configuration>