I know that it is possible to check how much physical RAM is installed using GetPhysicallyInstalledSystemMemory or how much ram the operating system can see using GlobalMemoryStatusEx. However, I am wondering if there is any way to check how much ram a user has installed by slot. That is, to be able to programmatically tell the difference between 1x2GB of ram and 2x1GB of ram, thus checking if the computer can be upgraded easily via software. Ideally, a way to check this without .Net.
I know that it is possible to check how much physical RAM is installed
Share
Use WMI to look at Win32_PhysicalMemory. Look at the Capacity and Bank Label properties.
UPDATED: You do not need .NET for this. See Creating a WMI Application Using C++ for examples in C++