EDN Admin
Well-known member
I did two tests to fetch cpu info on windows system. First one is using __cpuid as mentioned here:
<a title="LINK http://msdn.microsoft.com/en-us/library/hskdteyh%28v=vs.80%29.aspx" target="_blank
<span>LINK <br/>
and another one is based on WMI. <br/>
<br/>
My processor is (AMD Athlon(tm) 64 Processor 3200+). <br/>
Using __cpuid : Model = 15 Family = 15 Stepping = 0 <br/>
Using WMI : Family 15 Model 31 Stepping 0 <br/>
<br/>
Model is different. <br/>
<br/>
When running this code on another machine with AMD64 Phenom II X2 555 processor: <br/>
using WMI : Family 16, Model 4, Stepping 3 <br/>
using __cpuid : Family 15, Model 4, Stepping 3 <br/>
<br/>
Family is different. <br/>
<br/>
The values are not equal. Any pointers? <br/>
<br/>
To get processor info using WMI, you can type <br/>
wmic cpu get caption <br/>
on command line. <br/>
<br/>
<br/>
Prashant
View the full article
<a title="LINK http://msdn.microsoft.com/en-us/library/hskdteyh%28v=vs.80%29.aspx" target="_blank
<span>LINK <br/>
and another one is based on WMI. <br/>
<br/>
My processor is (AMD Athlon(tm) 64 Processor 3200+). <br/>
Using __cpuid : Model = 15 Family = 15 Stepping = 0 <br/>
Using WMI : Family 15 Model 31 Stepping 0 <br/>
<br/>
Model is different. <br/>
<br/>
When running this code on another machine with AMD64 Phenom II X2 555 processor: <br/>
using WMI : Family 16, Model 4, Stepping 3 <br/>
using __cpuid : Family 15, Model 4, Stepping 3 <br/>
<br/>
Family is different. <br/>
<br/>
The values are not equal. Any pointers? <br/>
<br/>
To get processor info using WMI, you can type <br/>
wmic cpu get caption <br/>
on command line. <br/>
<br/>
<br/>
Prashant
View the full article