How to get Processor Speed

Hi,

I would like to implement a simple inventory system. When user click a button, the user’s computer configuration (RAM, CPU, HDD size, etc…) will be sent to that system.

One major problem is, how can I get the processor speed? I’ve searched this forum and MSDN, there is an API (GetSystemInfo) to get the processor type, but seems no way to get the speed.

Any hints? Or any similar program ready already?

Million Thanks!

Eric

Subject: Re: How to get Processor Speed

This is going to be more of an OS-level API question than Notes/Domino question. I would suggest you check the various operating system API forums out there.

That being said, once you obtain a DLL or other API library that will allow you to obtain the information you want you should be able to incorporate that into script farily easily. The Designer help has various bits about declaring and calling external functions, and there are various threads around this forum (and the R5 forum) that will assist you as well.

Subject: How to get Processor Speed

Take a look at the following URL:CAMEL - CPU Identifier Class- CodeProject

note that it’s for “Non-Commercial Usage” only!

HTH,

  • Florian

Subject: How to get Processor Speed

For inventoring, I would use WMI (Windows Management Instrumentation), look here:Technical documentation | Microsoft Learn

I have used WMI, altough not in Notes but Windows Scripting Host, but it should work in Notes:

Set Prozessor = GetObject(“winmgmts://localhost/root/cimv2:Win32_Processor”)

For Each protyp In Prozessor.Instances_

msgbox “Prozessor: " & protyp.Name & “/” & protyp.CurrentClockSpeed & " Mhz”

msgbox "Modelltyp: " & protyp.Caption

Next

On Win 2000 and Win XP, WMI comes with the OS, using WinNT, you have to install it first.

Using WMI, you can read almost everything about hardware.

Bye,

Andreas