配置属性 -> 链接器 -> 清单文件 -> UAC执行级别
改为 requireAdministrator 这个级别即可。
转载于:https://www.cnblogs.com/edata/p/7814375.html