title: How to find number of physical core in a Windows system with c++ code
body: <p>I tried this but it will shows number of logical processors only</p>
  
  <pre><code>    SYSTEM_INFO sysinfo;
  GetSystemInfo(&amp;sysinfo);
  int numCPU = sysinfo.dwNumberOfProcessors;
  </code></pre>