hi ,
I am using SYSTEM_INFO structure to know the processor architecture of machine. I did this
SYSTEM_INFO sys;
memset(&sys,0,sizeof(sys));
GetSystemInfo(&sys);
For Intel Pentium machine it is giving right information i.e.
sys.dwActiveProcessorMask 3
sys.dwAllocationGranularity 65536
sys.dwNumberOfProcessors 2
sys.dwProcessorType 586
sys.wProcessorArchitecture 0
sys.wProcessorLevel 15
sys.wReserved 0
but running this code on AMD Athelon(tm) 64 processor giving this wrong output
sys.dwActiveProcessorMask 1
sys.dwAllocationGranularity 65536
sys.dwNumberOfProcessors 1
sys.dwProcessorType 586
sys.wProcessorArchitecture 0
sys.wProcessorLevel 15
sys.wReserved 0
What am I doing wrong? I just want to know the processor architecture(x64 or x86). Is there any other way to find this.