有没有简单的方法来获取Windows版(家庭版,专业等)?
Is there any easy way to get Windows Edition (Home, Professional, etc.)?
情侣这样做的方式:
您可以解析在WMI中的Win32_OperatingSystem
类的标题字段。
您可以看看 OSProductSuite
和 OperatingSystemSKU
在字段中的的Win32_OperatingSystem
的WMI类。
您可以口这个C ++程序使用P / Invoke。
You could parse the caption
field of the Win32_OperatingSystem
class in WMI.
You could look at OSProductSuite
and OperatingSystemSKU
fields in the Win32_OperatingSystem
class in WMI.
You could port this C++ program using P/Invoke.