The dwProcessorType member of the SYSTEM_INFO structure returns PROCESSOR_INTEL_PENTIUM even though i am running athlon 1800+ on 98se

Does anyone running a newer version of windows get something different for athlon? Or is wintel still the god of the bits.

I must, must, must, must, know.

Posted on 2003-01-08 15:00:57 by IwasTitan
have u read the sdk on this structure... here is a quote about the member to which you refer...
An obsolete member that is retained for compatibility with Windows NT 3.5 and earlier. Use the wProcessorArchitecture, wProcessorLevel, and wProcessorRevision members to determine the type of processor.
Windows 95/98/Me: Specifies the type of processor in the system. This member is one of the following values:


And of course its always gonna return intel, because thats the only valid values
Posted on 2003-01-08 15:18:01 by BubbaFate
use cpuid and you get "GenuineIntel" and "AuthenticAMD" etc.

Posted on 2003-01-08 16:53:04 by stormix

use cpuid and you get "GenuineIntel" and "AuthenticAMD" etc.


And whats the api call for cpuid.

cpuid is not in my help win32file
Posted on 2003-01-08 17:26:17 by IwasTitan
CPUID is an opcode, available on 486 and above I think...

There was some code posted some time ago that demonstrates how to detect the processor (including code to check whether CPUID is a valid instruction).

Search for CPUID on the board.

Posted on 2003-01-08 17:36:00 by Mirno
Posted on 2003-01-08 18:38:14 by HeXeN
Make your own assembler ... for such simple instructions like CPUID :)

xor eax,eax
db 0fh
db 0a2h

CPUID gets eax=0 as an input and returns
eax=maximum eax that can be used to get other info about CPU (like features and cache/TLB)
ebx,ecx,edx =GenuineIntel or AUthenticAMD etc twisted :)
Posted on 2003-01-09 04:49:55 by BogdanOntanu