我一直在使用GetVersionEx
它在运行 Windows 8.1 的机器上失败。看了一些资料发现GetVersionEx
从8.1版本开始就被弃用了。
我想问一下在哪里可以找到已弃用 API 的完整列表,因为我不想再使用它了。
编辑:我不是在问用什么代替 GetVersionEx
,我是在问已弃用 API 的完整列表。
最佳答案
Microsoft 已在 Operating system version changes in Windows 8.1 and Windows Server 2012 R2 中描述了更改.在文章的左侧,您可以导航到与 Windows 8.1 and Windows Server 2012 R2 client and server compatibility 相关的其他问题.
您遇到的行为如下:
In Windows 8.1, the GetVersion(Ex) APIs have been deprecated. That means that while you can still call the APIs, if your app does not specifically target Windows 8.1, you will get Windows 8 versioning (6.2.0.0).
关于windows - Windows 8.1 后 WinAPI 弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19518670/