title: Retrieve number of memory slots using C
body: <p>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,</p>
  
  <pre><code>C:&gt;wmic
  wmic:root\cli&gt; path Win32_PhysicalMemoryArray get MemoryDevices
  </code></pre>
  
  <p>(http://msdn.microsoft.com/en-us/library/aa394348%28v=vs.85%29.aspx)</p>
  
  <p>But it does not give me correct number of memory slots. I have only 2 memory slots but it give me 4.</p>
  
  <p>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".</p>