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}
    
    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大