How to retrieve number of memory slots my computer have using C-language not through WMI?
When i tried retrieving number of memory slots using WMI though command prompt,
C:>wmic
wmic:root\cli> path Win32_PhysicalMemoryArray get MemoryDevices
(http://msdn.microsoft.com/en-us/library/aa394348%28v=vs.85%29.aspx)
But it does not give me correct number of memory slots. I have only 2 memory slots but it give me 4.
and what is the difference between memory array, Memory slots and memory sockets? Because in the msdn(Link provided above) it state that MemoryDevices is the “Number of physical slots or sockets available in this memory array”.
Using WMI:
Follow this link to use it in your C/C++ application with native win32 API calls.
Also this link helps you.