代码未经测试,只做个记录
据说只是改了UA.
在注册表修改这个路径,并且把自己程序添加进去,写一个浏览器控件的版本号,只要高于12000就自动改为Edge.
For 64bit applications, 32bit only Windows or current user: [HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION] "Example.exe"=dword:00002ee1
respectively [HKEY_CURRENT_USER...]
For 32bit applications on 64 bit machines (only machine-wide): [HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftInternet ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION] "Example.exe"=dword:00002ee1