We help IT Professionals succeed at work.

Processor Speed

SJohnson
SJohnson asked
on
294 Views
Last Modified: 2010-04-04
Can anyone tell me  how to detect the type of CPU in a machine and its speed?  Say, a Pentium running at 166 mhz?

Thanks

Stu
Comment
Watch Question

The "GetSystemInfo" api call will return the type of CPU (486, Pentium, etc.) but not the speed...

JB
SJohnsonSenior Developer

Author

Commented:
Thanks for that.  I actually found that just after posting this.  But I still need to find the speed.

Again, thanks.

Stuart
I don't think Delphi declares all the constants for GetSystemInfo, but they are declared in Winnt.h if you have VC++.

Commented:
GetSystemInfo can not detect the CPU-speed, but you can read the BIOS, because all newer BIOS store the CPU-speed.
NOTICE: to read BIOS-information you've to change the memory-address (under 640KByte) to selectors, which only can be used in WIN95 or WINNT.

Some years ago I wrote a small programn which does this. May be I find it.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
SJohnsonSenior Developer

Author

Commented:
Thanks for that kwang.  Worked beautifully.

Again, thanks

Stuart
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.