如何获取OS等系统信息 [英] How do I get system Info such as OS
问题描述
我想知道我的应用程序是否在平板电脑上运行,并且基于
表现不同。我怎么知道系统是否是平板电脑?
非常感谢提前
Al
>
推荐答案
" =?Utf-8?B?QWw =?=" < Al@discussions.microsoft.com>写在
新闻:A4 ********************************** @ microsof t .com:
"=?Utf-8?B?QWw=?=" <Al@discussions.microsoft.com> wrote in
news:A4**********************************@microsof t.com:
我想知道我的应用程序是否在平板电脑上运行,而且基于这种行为有所不同。我怎么知道系统是否是平板电脑?
Hi,
I like to know if my application is running on Tablet PC or not and
based on that behave differently. How would I know if the system is
Tablet PC or not?
您可以随时使用WMI ... WMI可以查询任何系统信息。
可能有一种更简单的方法,但WMI可能是最全面的。
-
Lucas Tam(RE ****** **@rogers.com)
请删除删除来自回复时的电子邮件地址。
http://成员。 ebay.com/aboutme/coolspot18/
如何查询WMI的操作系统类型?
" ; Lucas Tam写道:
How do I query WMI for Operating system type?
"Lucas Tam" wrote:
" =?Utf-8?B?QWw =?=" < Al@discussions.microsoft.com>在
新闻中写道:A4 ********************************** @ microsof t.com:
"=?Utf-8?B?QWw=?=" <Al@discussions.microsoft.com> wrote in
news:A4**********************************@microsof t.com:
我想知道我的应用程序是否在平板电脑上运行,而且基于这种行为有所不同。我怎么知道系统是否是平板电脑?
Hi,
I like to know if my application is running on Tablet PC or not and
based on that behave differently. How would I know if the system is
Tablet PC or not?
您可以随时使用WMI ... WMI可以查询任何系统信息。
可能有一种更简单的方法,但WMI可能是最全面的。
-
Lucas Tam(RE ******** @ rogers.com)
请删除删除来自回复时的电子邮件地址。
http://成员。 ebay.com/aboutme/coolspot18/
" =?Utf-8?B?QWw =?=" < Al@discussions.microsoft.com>写在
新闻:51 ********************************** @ microsof t .com:
"=?Utf-8?B?QWw=?=" <Al@discussions.microsoft.com> wrote in
news:51**********************************@microsof t.com:
如何查询WMI的操作系统类型?
How do I query WMI for Operating system type?
这里是WMI的参考:
http: //msdn.microsoft.com/library/de...l=/library/en-
us / wmisdk / wmi / wmi_reference.asp
使用WMI与Vb.NET的示例:
http://www.freevbcode.com/ShowCode.asp?ID=4571
WMI非常简洁......您可以通过.NET查询WMI SQL数据库。使用WMI的最简单的部分是查找要查询的正确对象。
您可能想尝试Win32_ComputerSystemProduct类。我想你可能在那里寻找
信息:
http://msdn.microsoft.com/library/de...l=/library/en-
us / wmisdk / wmi / win32_computersystemproduct.asp
-
Lucas Tam(RE********@rogers.com)
请删除删除来自回复时的电子邮件地址。
http://成员。 ebay.com/aboutme/coolspot18/
Here''s the reference for WMI:
http://msdn.microsoft.com/library/de...l=/library/en-
us/wmisdk/wmi/wmi_reference.asp
Sample on using WMI with Vb.NET:
http://www.freevbcode.com/ShowCode.asp?ID=4571
WMI is pretty neat... you can query WMI via .NET like a SQL database. The
trickiest part with WMI is to find the proper object to query.
You might want to try the class Win32_ComputerSystemProduct. I think the
info your looking for maybe in there:
http://msdn.microsoft.com/library/de...l=/library/en-
us/wmisdk/wmi/win32_computersystemproduct.asp
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
这篇关于如何获取OS等系统信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!