How can you tell How Many MHZ a computer is from the regist

Hi I'm a programmer so I don't specifically need to know that I can install SiSoft Sandra and it'll tell me everything. Although that is a good answer. I'm trying to find out where in the registry a user's CPU speed is maintained? Also where...




Topic Options
#112757 - 10/15/02 06:22 AM How can you tell How Many MHZ a computer is from the regist
Christianb Offline
old hand

Registered: 11/10/01
Posts: 759
Hi I'm a programmer so I don't specifically need to know that I can install SiSoft Sandra and it'll tell me everything. Although that is a good answer. I'm trying to find out where in the registry a user's CPU speed is maintained? Also where in the registry is the brand of the CPU manufacturer maintained? Basically I'm trying to tell if they have an intel P4 or not.
Thanks,
Christian Blackburn

Top
Advertisement
#112758 - 10/15/02 06:26 AM Re: How can you tell How Many MHZ a computer is from the regist
Christianb Offline
old hand

Registered: 11/10/01
Posts: 759
I'm also trying to tell whether they have a Celeron or not. So that's why I'm checking both the manufacturer and the speed so that way I can support both geniune pentium 4s and any future celeron P4 class CPUs. What's the slowest P4 class celeron CPU? Or are celerons still based on the P3? It's been a while since I've kept up on CPUs.
Thanks,
Christian

Top
#112765 - 10/15/02 06:50 AM Re: How can you tell How Many MHZ a computer is from the regist
Admiral LSD Offline
old hand

Registered: 08/14/01
Posts: 991
I just checked and all the info you'll probably need is right here:

HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\

The CPU MHz is stored as a REG_DWORD in hex so you'll need to write your program to decode that but the Vendor Indentifer (GenuineIntel, AuthenticAMD, CyrixInstead) and CPU Identifier (x86 Family x Model y Stepping z) are both in plain text. You'll probably need to reference an internal lookup table to make any sense of the CPU Identifier but if you know what you're looking for it shouldn't be all that difficult.

Top
#112768 - 10/15/02 07:37 AM Re: How can you tell How Many MHZ a computer is from the regist
adamvjackson Offline
Pooh-Bah

Registered: 08/26/02
Posts: 2174
Loc: Asheville, NC
If you do find such a table, please post a link to it, as I am very interested in making sense of the family/stepping, etc... Perhaps others are too?

Top
#112771 - 10/15/02 09:39 AM Re: How can you tell How Many MHZ a computer is from the regist
Admiral LSD Offline
old hand

Registered: 08/14/01
Posts: 991
I have one (at least for Pentiums and Pentium IIs) in my copy of the 10th Anniversary Edition of Scott Muellers Upgrading and Repairing PCs. He probably has a more up to date version (covering Pentium IIIs, 4s and Athlons) in later editions of the book. I don't know of any online resources for the info though but a bit of googling probably would turn up a few...

Top
#112810 - 10/16/02 05:21 AM Re: How can you tell How Many MHZ a computer is from the regist
Christianb Offline
old hand

Registered: 11/10/01
Posts: 759
Thanks Admiral for the registry key. I will have to research and see if it exists in Windows NT 4 and Windows 95 otherwise I'm afraid I can't use it smile or I will have to provide a contingency plan for the older OS's.
Intel's website has this information, but their site is extremely hard to find information on. I think I will try to write them and have one of their employees find it for me smile.
Thanks for your help guys,
Christian

Top
#112811 - 10/16/02 05:28 AM Re: How can you tell How Many MHZ a computer is from the regist
Christianb Offline
old hand

Registered: 11/10/01
Posts: 759
Are celerons still based on the P3 instruction set?

Top
#112812 - 10/16/02 05:41 AM Re: How can you tell How Many MHZ a computer is from the regist
Christianb Offline
old hand

Registered: 11/10/01
Posts: 759
Are celerons still based on Pentium II/III Architecture?

Top
#112815 - 10/16/02 06:07 AM Re: How can you tell How Many MHZ a computer is from the regist
Admiral LSD Offline
old hand

Registered: 08/14/01
Posts: 991
Nope, the 1.7Ghz+ Celerons are all based on the Willamette Pentium 4 core just with half the cache of the regular Willamettes (128 instead of 256k).

I just checked and the registry key does exist in NT4.0.

It's going to be a bit harder under Win9x since the key doesn't hold all the same info. At most you'll be able to get the Vendor Identifer (GenuineIntel, CyrixInstead etc) and what type of chip it is (6x86MX(tm), Model x Family y Stepping z). The clock speed doesn't appear to be contained in the key like with NT. There must be a way to get it though since I'm positive DXDIAG displays the clock speed even under Win9x.

Top
#112968 - 10/18/02 03:07 AM Re: How can you tell How Many MHZ a computer is from the regist
Christianb Offline
old hand

Registered: 11/10/01
Posts: 759
Thank you very much Admiral. I actually don't need the speed I'm just trying to detect whether or not the processor is Intel, and if it is then I need to know if it supports Pentium IV instructions. I'll have to find out about Windows 95. I have Virtual PC and therefore I ought to be able to install it and check. I would just ask someone, but I'd like a Windows 95 test bed for future use anyways smile.
Thanks Again,
Christian

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
MSDTC - Update causes Apps to fail
by Zman
6 minutes 38 seconds ago
Ntloader missing message when trying to install xp
by Complutenovice
07/10/09 04:20 AM
Odd 3DO malfuction.
by one thread wonder
07/09/09 06:53 AM
DosBox v0.73 Released
by jmmijo
07/09/09 04:20 AM
qtech winxp pc
by johnmony
07/08/09 12:58 AM
Who's Online
1 Registered (Zman), 165 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
90558 Members
24 Forums
52396 Topics
182627 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22