How can I find out how much memory is physically installed in Windows?

Posted by Randall on Stack Overflow See other posts from Stack Overflow or by Randall
Published on 2010-03-25T14:30:30Z Indexed on 2010/03/25 14:33 UTC
Read the original article Hit count: 228

Filed under:
|
|

I need to log information about how much RAM the user has. My first approach was to use GlobalMemoryStatusEx but that only gives me how much memory is available to windows, not how much is installed. I found this function GetPhysicallyInstalledSystemMemory but its only Vista and later. I need this to work on XP. Is there a fairly simple way of querying the SMBIOS information that GetPhysicallyInstalledSystemMemory was using or is there a registry value somewhere that I can find this out.

© Stack Overflow or respective owner

Related posts about c++

Related posts about system