简体   繁体   English

获得ram制造商

[英]Get ram manufacturer

Does anyone know a way to programmatically retrieve the ram memory manufacturer? 有没有人知道以编程方式检索ram内存制造商的方法?

Thanks! 谢谢!

Modern RAM chips have an additional EPROM on board that contains a lot of information about the RAM. 现代RAM芯片在板上有一个额外的EPROM,包含大量有关RAM的信息。 The standard for this is SPD, or Serial Presence Detect. 其标准是SPD或Serial Presence Detect。 At least some versions of SPD include a JDEC manufacturer's code. 至少某些版本的SPD包括JDEC制造商的代码。

Look at this article for some introductory information on SPD. 请阅读本文 ,了解有关SPD的一些介绍性信息。 Not every RAM chip has the information you need, and not every BIOS exposes it, but the article should get you started on handling this stuff in those cases where it's possible. 并非每个RAM芯片都有您需要的信息,并不是每个BIOS都会公开它,但是文章应该让您在可能的情况下开始处理这些内容。

In WINAPI, you should be able to call GetSystemFirmwareTable to retrieve the SMBIOS table, and then parse the table to extract that information. 在WINAPI中,您应该能够调用GetSystemFirmwareTable来检索SMBIOS表,然后解析表以提取该信息。

See this 看到这个

http://msdn.microsoft.com/en-us/library/ms724379%28v=VS.85%29.aspx http://msdn.microsoft.com/en-us/library/ms724379%28v=VS.85%29.aspx

And this 和这个

http://dmtf.org/sites/default/files/standards/documents/DSP0134_2.7.0.pdf http://dmtf.org/sites/default/files/standards/documents/DSP0134_2.7.0.pdf

The other option, as mentioned by ruslik, is to use WMI, as described here 正如ruslik所提到的,另一个选择是使用WMI,如此处所述

http://msdn.microsoft.com/en-us/library/aa390423%28v=VS.85%29.aspx http://msdn.microsoft.com/en-us/library/aa390423%28v=VS.85%29.aspx

(you're looking for objects of type Win32_PhysicalMemoryArray) (您正在寻找Win32_PhysicalMemoryArray类型的对象)

I'm not sure which way would be easier. 我不确定哪种方式会更容易。 Both seem hard. 两者似乎很难。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM