开发者

Get ram manufacturer

Does anyone know a way to programmatically retrieve the ram memory开发者_如何学JAVA manufacturer?

Thanks!


Modern RAM chips have an additional EPROM on board that contains a lot of information about the RAM. The standard for this is SPD, or Serial Presence Detect. At least some versions of SPD include a JDEC manufacturer's code.

Look at this article for some introductory information on 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.


In WINAPI, you should be able to call GetSystemFirmwareTable to retrieve the SMBIOS table, and then parse the table to extract that information.

See this

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

The other option, as mentioned by ruslik, is to use WMI, as described here

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

(you're looking for objects of type Win32_PhysicalMemoryArray)

I'm not sure which way would be easier. Both seem hard.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜