WinAPI失败。赢得8.1(建立9431)作为胜利8(建立9200)

时间:2013-10-18 07:59:49

标签: windows windows-8

我正在使用GetVersionEx WinAPI调用来获取有关系统的信息。但是它返回Windows 8.1的错误内部版本号。

一直在寻找信息,但没有找到相关信息。它可能是Windows错误,但想询问并确保Windows 8.1支持所有以前的API调用。

1 个答案:

答案 0 :(得分:1)

自Windows 8.1起,GetVersionEx为deprecated。如果您在Windows 8.1上运行时感兴趣,那么您可以使用Version Helper functions。由于您想知道内部版本号,因此需要change the Manifest告诉Windows您的应用程序支持Windows 8.1。您需要将<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>添加到<assembly><compatibility><application>节点。