Article View: borland.public.cppbuilder.nativeapi
Article #12846AMD cpu not recognized..Why ??
From: Oren (Halvani.de)
Date: Sun, 16 Nov 2003 21:32
Date: Sun, 16 Nov 2003 21:32
45 lines
2141 bytes
2141 bytes
hi dear builders,
I got a snip that checks for the name of the cpu..
I run the programm on a pc with a AMD cpu..
and my programm says the cpu is a "Intel Pentium III";
can someone tell me whats wrong ? Why my programm didn't say: "Non Intel";
Oren
/****************************************/
AnsiString __fastcall GetProcessorClass()
{
SYSTEM_INFO System;
AnsiString hClass = "Non Intel";
GetSystemInfo(&System);
if( System.wProcessorArchitecture == 0 )
{
switch( System.wProcessorLevel & 15 )
{
case 3: hClass = "Intel 386"; break;
case 4: hClass = "Intel 486"; break;
case 5: hClass = "Intel Pentium"; break;
case 6: // notice HIBYTE, not HIWORD
switch(HIBYTE(System.wProcessorRevision))
{
case 1: hClass = "Intel Pentium Pro"; break;
case 3: // use separate case statements, not commas
case 5: hClass = "Intel Pentium II"; break;
case 6: hClass = "Intel Celeron"; break;
case 7:
case 8:
case 10:
case 11: hClass = "Intel Pentium III"; break;
} break;
case 15: hClass = "Intel Pentium IV"; break;
}
}
return hClass;
}
/****************************************/
Technical Details
Message-ID:
<3fb7ed02@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5c5f838658412107,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-16 13:39:18 PST From: "Oren \(Halvani.de\)" <oren78@freenet.de> Newsgroups: borland.public.cppbuilder.nativeapi Subject: AMD cpu not recognized..Why ?? Date: Sun, 16 Nov 2003 22:32:51 +0100 Lines: 47 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.6.43.176 Message-ID: <3fb7ed02@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069018370 213.6.43.176 (16 Nov 2003 13:32:50 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail