如何在delphi中检查操作系统版本?Windows 7 还是 Server 2008 R2? [英] How to check in delphi the OS version? Windows 7 or Server 2008 R2?

查看:22
本文介绍了如何在delphi中检查操作系统版本?Windows 7 还是 Server 2008 R2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我总是通过它们的主要/次要版本号来检查 Windows 版本.奇怪的是,Windows 7 和 Server 2008 R2 都返回相同的主要/次要版本号组合.

I always used to check the windows versions by their major/minor build numbers. Strangely enough, Windows 7 and Server 2008 R2, both return the same major/minor version number combination.

通过在命令提示符中输入 ver 来确认这一点

Confirm this by typing ver into a command prompt

推荐答案

GetVersionEx.有版本号及其相关版本的图表此处.请注意,2008 R2 和 Windows 7 的产品类型不同.

GetVersionEx. There is a chart of the version numbers and their associated editions here. Notice that the product type is different between 2008 R2 and Windows 7.

这篇关于如何在delphi中检查操作系统版本?Windows 7 还是 Server 2008 R2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆