使用Visual Basic.NET以便从BIOS中获取有关PC硬件的信息 [英] Using Visual Basic.NET in order to get information from the bios about the PC hardware

查看:90
本文介绍了使用Visual Basic.NET以便从BIOS中获取有关PC硬件的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
我正在尝试在VB.NET中构建此小型应用程序,该应用程序将为您提供有关PC硬件的信息.据我了解,有必要使用WMI类以便从计算机BIOS获得此类信息.问题是我试图找到物理内存类型(DDR2/DDR3等.),但找不到WMI类来获取此类信息,尽管在BIOS中该信息显然可用.我已经尝试过Win32_PhysicalMemory类,但是问题是它没有提供任何速度值.现在我开始考虑其他方法来获得它,例如划分虚拟内存和物理内存并根据答案确定内存的类型,但是问题在于它似乎不可靠我!
另一个问题是CPU温度,我听说无法访问VB.NET发出的此类信息,我很想听听有关此消息的确认!

希望获得帮助!

Hello everyone!
I''m trying to build this small application in VB.NET that would give you information about your PC hardware. From what i''v learned, there is a need to use the WMI classes in order to obtain such information from the computer BIOS. The problem is that i''m trying to find the physical memory type (DDR2/DDR3 etc..) and i couldn''t find a WMI class to get that kind of info, although in the BIOS this information is clearly available. I''v already tried the Win32_PhysicalMemory class, but the problem is that it doesn''t give any values for speed. Now i''v started to think about other ways to get it, like dividing the virtual memory and the physical memory and to decide what type is the memory according to the answer, but the problem is that it doesn''t seem reliable to me!
Another problem is CPU temp, i''v heard that it is impossible to access this kind of information threw VB.NET, and i would love to hear a confirmation about that!

I would appreciate to get some help!
thanks alot!

推荐答案

Win32_PhysicalMemory WMI类确实具有至少支持DDR-2的MemoryType属性(可能会在最近进行更新).请参阅 http://msdn.microsoft.com/en-us/library/aa394347( VS.85).aspx [
The Win32_PhysicalMemory WMI class does have the MemoryType property that at least supports DDR-2 (might be updated as of late). See http://msdn.microsoft.com/en-us/library/aa394347(VS.85).aspx[^]. Are you not seeing this? I do see it on my Win7 box.

CPU temperature is reported differently for different motherboard manufacturers. If they haven''t implemented a WMI provider for the temperature, you can''t get it without a specific driver and ability to access it. MSAcpi_ThermalZoneTemperature may work for some motherboards, but also only seems to be updated during high temperature events.


这篇关于使用Visual Basic.NET以便从BIOS中获取有关PC硬件的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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