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.
:grin:
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.
:grin:
have u read the sdk on this structure... here is a quote about the member to which you refer...
And of course its always gonna return intel, because thats the only valid values
dwProcessorType
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:
PROCESSOR_INTEL_386
PROCESSOR_INTEL_486
PROCESSOR_INTEL_PENTIUM
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:
PROCESSOR_INTEL_386
PROCESSOR_INTEL_486
PROCESSOR_INTEL_PENTIUM
And of course its always gonna return intel, because thats the only valid values
use cpuid and you get "GenuineIntel" and "AuthenticAMD" etc.
-stormix
-stormix
use cpuid and you get "GenuineIntel" and "AuthenticAMD" etc.
-stormix
And whats the api call for cpuid.
cpuid is not in my help win32file
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.
Mirno
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.
Mirno
-HeXeN
Make your own assembler ... for such simple instructions like CPUID :)
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 :)
CPUID PROC
xor eax,eax
db 0fh
db 0a2h
ret
ENDP
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 :)