VB.NET中的WMI [英] WMI in VB.NET

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

问题描述

你好,


我想知道是否有WMI知识的人可以问我这个,


* WMI在哪里获得它信息来自?特别是**版本的

操作系统**,它是否在注册表中保存?还是在数据库中?或者

是否可以通过检查DLL来获取它?


提前致谢。


-

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \\ \\ / / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \

无论如何。无论结果如何,你都会被改变。


Fergus - 2003年9月5日

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \

解决方案

*" Nak" < a@a.com> scripsit:

我想知道是否有WMI知识的人可以问我这个,

* WMI从哪里获取信息?特别是**版本的操作系统**,是否在注册表中保存?还是在数据库中?或者通过检查DLL来获取它吗?




AFAIK WMI在某些情况下使用平台调用来获取信息。

-

Herfried K. Wagner

MVP·VB Classic,VB.NET

< http:// www .mvps.org / dotnet>


Hi Herfried,

AFAIK WMI在某些情况下使用平台调用来获取信息。




什么是平台电话?当然,信息必须仍然存储在系统的某个地方?
?我只是在找到Windows版本的b / b
之后的位置,即5.1 build 2600 bla bla bla,再次感谢:-)我

将去查找平台电话现在也好。


尼克。


-

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \

无论如何。无论结果如何,你都会被改变。


Fergus - 2003年9月5日

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \


*" Nak" < a@a.com> scripsit:

什么是平台电话?


Windows API调用。

当然,信息仍然必须存储在系统的某个地方?我只是在Windows的版本所在的位置之后,即5.1 build 2600 bla bla bla,再次感谢:-)我将继续查找平台调用。现在。




为什么不使用''Environment.OSVersion''?


-

Herfried K. Wagner

MVP·VB Classic,VB.NET

< http://www.mvps.org/dotnet>


Hi there,

I was wondering if someone with WMI knowledge could ask me this one,

*Where does WMI get its information from? Especially the **version of
the operating system**, is it held in the registry? or in a database? or
does it get it by examining a DLL?

Thanks in advance.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

解决方案

* "Nak" <a@a.com> scripsit:

I was wondering if someone with WMI knowledge could ask me this one,

*Where does WMI get its information from? Especially the **version of
the operating system**, is it held in the registry? or in a database? or
does it get it by examining a DLL?



AFAIK WMI uses in some cases platform calls to get the information.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


Hi Herfried,

AFAIK WMI uses in some cases platform calls to get the information.



What is a platform call? Surely the information must still be stored
somewhere on the system? I''m only after location where the version of
Windows is located, i.e. 5.1 build 2600 bla bla bla, thanks again :-) I
shall go lookup "platform call" as well now.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


* "Nak" <a@a.com> scripsit:

What is a platform call?
Windows API call.
Surely the information must still be stored
somewhere on the system? I''m only after location where the version of
Windows is located, i.e. 5.1 build 2600 bla bla bla, thanks again :-) I
shall go lookup "platform call" as well now.



Why not use ''Environment.OSVersion''?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


这篇关于VB.NET中的WMI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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