获取Windows版本 [英] Get Windows Edition
本文介绍了获取Windows版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有简单的方法来获取Windows版(家庭版,专业等)?
Is there any easy way to get Windows Edition (Home, Professional, etc.)?
推荐答案
情侣这样做的方式:
- 您可以解析在WMI中
的Win32_OperatingSystem
类的<code>标题字段。 - 您可以看看
OSProductSuite
和OperatingSystemSKU
在字段中的的Win32_OperatingSystem
的WMI类。 - 您可以口这个C ++程序使用P / Invoke。
- You could parse the
caption
field of theWin32_OperatingSystem
class in WMI. - You could look at
OSProductSuite
andOperatingSystemSKU
fields in theWin32_OperatingSystem
class in WMI. - You could port this C++ program using P/Invoke.
这篇关于获取Windows版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文