HUSTIS1403 2016-06-01 03:14 采纳率: 0%
浏览 2140

关于msdn上面的IsWindows10OrGreater和8.1那个在window10上运行会出错

For Windows 10, IsWindows10OrGreater returns false unless the application contains a manifest that includes a compatibility section that contains the GUID that designates Windows 10.

这个具体怎么解决啊。

  • 写回答

1条回答 默认 最新

  • oyljerry 2016-06-01 09:00
    关注

    用GetVersionEx,然后设置正确你的exe的guid信息

    What you need to do is add the proper GUID(s) to your application (.exe/.dll) binaries (via manifest XML information). In other words, if you specifically state your application supports 8.1, GetVersionEx() will return proper information when running on Windows 8.1. If you do not, GetVersionEx() will lie to you.
    
     GUID List for the Lazy
    
    Vista: {e2011457-1546-43c5-a5fe-008deee3d3f0}
    Windows 7: {35138b9a-5d96-4fbd-8e2d-a2440225f93a}
    Windows 8: {4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}
    Windows 8.1: {1f676c76-80e1-4239-95bb-83d0f6d0da78}
    Windows 10: {8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}
    
    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向