Jump to content
Compatible Support Forums
Sign in to follow this  
Christianb

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

Recommended Posts

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

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post

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?

Share this post


Link to post

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...

Share this post


Link to post

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

Share this post


Link to post

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, 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.

Share this post


Link to post

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

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×