CpuInfo

Description:

baCpuInfo returns information about the processor installed.

Platforms:

Windows

Usage:

Result = baCpuInfo( InfoType )

Arguments:

String.
InfoType is the type of information to get. Can be:

"vendor" 

the processor manufacturer

"type" 

returns the type of processor

"model" 

the model of the processor

"stepping" 

the stepping revision number

"speed" 

the speed of the processor in mHz

Returns:

Integer or string depending on the InfoType.
See the Notes section for details on interpreting the return.

Examples:

Director:
Cpu = baCpuInfo( "type" )

Authorware:
Cpu := baCpuInfo( "type" )
 

Notes:

The "vendor" option returns a string containing the name of the manufacturer of the processor. This will be a 12 character string, the most common returns will be "GenuineIntel", "AuthenticAMD" and "CryixInstead" but there will be others for chips from IBM, Compaq, DEC and others.

This function contains identification code from Intel and AMD and is only reliable with those processors. Other brands will report that they are equivalent to an Intel processor, but that will not necessarily be a valid comparison.

To determine the actual processor model, you need to interpret both the "type" and "model" options. The "type" option will identify a general family of processor eg: 486, Pentium or K6. The "model" option will give specific information about the model within a particular family. "stepping" is the revision number of a specific model, and will not generally be useful. Refer to the following table to determine a processor.
 

Intel CPUs       AMD CPUs    
Description  Type   Model    Description  Type   Model 
486 DX 4 0, 1   K5  5 < 6
486 SX 4 2   K6  5 6, 7
486 DX2 4 3, 7   K6-II  5  8
486 SL 4 4   K6-III  5  9
486 SX2 4 5   Athlon  6  1-10
486 DX4 4 8   Duron  6  3, 6, 7
Pentium 5 1, 2   Athlon XP/MP 6 8
Pentium Overdrive 5 3   Sempron Model 8 6 8
Pentium MMX 5 4   Athlon XP-M 6 10
Pentium Pro 6 1   Sempron Model 10 6 10
Pentium II (r1) 6 3        
Pentium II (r2) 6 5        
Celeron (r1) 6 5        
Celeron (r2) 6 6        
Pentium III 6 7, 8, 11        
Pentium III Xeon 6 8, 10        
Pentium 4 15 0 - 3        
Pentium 4 D 15 4 - 6        
Core Duo 6 14        
Core 2 Duo 6 15        
Core 2 Extreme 6 7        

The "speed" returned is only an approximation within a variation of about 10%. If the processor has been overclocked, the speed it is running at will be returned. Intel specifically warn against quoting this number to users, because it can not be guaranteed to be accurate. Use this number as a guide only.