我正在使用GetVersionEx
WinAPI调用来获取有关系统的信息。但是它返回Windows 8.1
的错误内部版本号。
一直在寻找信息,但没有找到相关信息。它可能是Windows错误,但想询问并确保Windows 8.1
支持所有以前的API调用。
答案 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>
节点。