I have now found two different applications that can be used to dynamically set DPI scaling whilst WinPE is running/booted.
____________________
SetDPI by imniko can be used to set / change / check DPI scaling from WinPE running on UEFI firmware. The program has been compiled as a 64-bit executable and is available from github - https://github.com/imniko/SetDPI
This is a commandline tool. Use the following syntax to check the current setting/scale (output is DPI as a percentage) -
setdpi.exe getOr
setdpi.exe valueTo change resolution on the main monitor use the following syntax (where scale is a percentage) -
setdpi.exe scaleE.g. To set scale as 125% use the following -
setdpi.exe 125I tried setting a scale of 200% on the laptop I am using to write this post - scale was set as 175 and I believe this is the maximum supported by my panel?
There are file dependencies that will need to be added to your WinPE -
- msvcp140.dll
- vcruntime140.dll
- vcruntime140_1.dll
The file dependencies can be added to your \Windows\System32\ directory or alternatively added to the path from which setDPI.exe is running.
When using SetDPI my menu system resolution/scale and running windows were unchanged. After closing down and restarting my applications they ran at the new scale - as this is a WinPE the shell cannot be shut down and restarted as it will end the session.
____________________
windows-DPI-scaling-sample is another 64-bit program that can be used to set/check DPI scale in WinPE running on UEFI firmware.
This is another github project, however is a GUI tool - the author is lihas. It is available from the following url - https://github.com/l...-scaling-sample
It has the following file dependency that will need to be added to your WinPE -
- oledlg.dll
As per SetDPI, the file dependencies can be added to your \Windows\System32\ directory or alternatively added to the path from which DPIScalingMFCApp.exe is running.
When using DPIScalingMFCApp.exe my menu system resolution/scale and running windows were unchanged. After closing down and restarting my applications they ran at the new scale - as this is a WinPE the shell cannot be shut down and restarted as it will end the session.
misty