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