[英]How to set “Override high DPI scaling” to “Application” programmatically through code
我們在 Activex 控件中有一個控件,該控件在 Windows 10 上存在圖形偽影。它在 Windows 7 中運行良好。我們能夠修復偽影的唯一方法是更改下圖所示的 exe 設置。
有沒有辦法通過代碼(Visual Studio 2017 c#)來改變它? 在我們的項目中,我們的項目中沒有清單文件。
我能夠通過使用下面的腳本並保存為 bat 文件並在代碼中執行它來設置 DPI 縮放
@echo off title 這是設置HIGHDPI縮放
REG ADD "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /V "C:\Program Files (x86)\VidSys\VidSys 進程外查看器框架\外部進程\NvrViewerExternalProcess.exe" /T REG_SZ /D ~HIGHDPIAWARE /F
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.