获取Windows版本 [英] Get Windows Edition

查看:195
本文介绍了获取Windows版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有简单的方法来获取Windows版(家庭版,专业等)?

Is there any easy way to get Windows Edition (Home, Professional, etc.)?

推荐答案

情侣这样做的方式:

  1. 您可以解析在WMI中的Win32_OperatingSystem 类的<​​code>标题字段。
  2. 您可以看看 OSProductSuite OperatingSystemSKU 在字段中的的Win32_OperatingSystem 的WMI类。
  3. 您可以口这个C ++程序使用P / Invoke。
  1. You could parse the caption field of the Win32_OperatingSystem class in WMI.
  2. You could look at OSProductSuite and OperatingSystemSKU fields in the Win32_OperatingSystem class in WMI.
  3. You could port this C++ program using P/Invoke.

这篇关于获取Windows版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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