PDA

Click to See Complete Forum and Search --> : API CPU System Speed Call


Howard7890
Jun 11th, 2001, 06:37 PM
Hi All,

I am looking for a Function call that will allow me to get the system speed. 600MHz,800MHz.....
Is there such a thing?

Thanks

:)

jim mcnamara
Jun 11th, 2001, 09:33 PM
This gets general system information like is the CPU a PII or PIII?
[CODE]
' From allapi.net
Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As SYSTEM_INFO)
Private Type SYSTEM_INFO
dwOemID As Long
dwPageSize As Long
lpMinimumApplicationAddress As Long
lpMaximumApplicationAddress As Long
dwActiveProcessorMask As Long
dwNumberOrfProcessors As Long
dwProcessorType As Long
dwAllocationGranularity As Long
dwReserved As Long
End Type
Private Sub Form_Load()
Dim SInfo As SYSTEM_INFO
'KPD-Team 1998
'URL: http://www.allapi.net/
'KPDTeam@Allapi.net
'Set the graphical mode to persistent
Me.AutoRedraw = True
'Get the system information
GetSystemInfo SInfo
'Print it to the form
Me.Print "Number of procesor:" + str$(SInfo.dwNumberOrfProcessors)
Me.Print "Processor:" + str$(SInfo.dwProcessorType)
Me.Print "Low memory address:" + str$(SInfo.lpMinimumApplicationAddress)
Me.Print "High memory address:" + str$(SInfo.lpMaximumApplicationAddress)
End Sub

[CODE]

VBNET (http://www.mvps.org/vbnet/index.html?code/system/getsysteminfo.htm) has code for reading the NT registry for CPU speed.

There is no existing api that gets the cpu speed.:rolleyes: