Feb 26th, 2007, 11:27 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Very Compatible Processor Speed Function
I'm looking for a function that can get a computer's processor speed in Windows 98/ME/2000/2003/XP/Vista. Also, I want it to be compatible with multiple processor systems. Thanks
Feb 26th, 2007, 11:41 PM
#2
Re: Very Compatible Processor Speed Function
Probably the most widely compatible technology to use is WMI. There are several threads on the topic in question on our forums.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 27th, 2007, 12:01 AM
#3
Thread Starter
Hyperactive Member
Re: Very Compatible Processor Speed Function
Yeah, I'm currently using http://freevbcode.com/ShowCode.Asp?ID=7766 but it says that my 1.6ghz Core Duo laptop has 756mhz.
Feb 27th, 2007, 12:07 AM
#4
Re: Very Compatible Processor Speed Function
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 27th, 2007, 12:20 AM
#5
Thread Starter
Hyperactive Member
Re: Very Compatible Processor Speed Function
It says 797mhz. Maybe that was the same thing as http://freevbcode.com/ShowCode.Asp?ID=7766 . I think I was wrong when I said 756. Anyway, that's still not right but thanks for trying
Feb 27th, 2007, 12:27 AM
#6
Re: Very Compatible Processor Speed Function
Works fine for me on Xp and even on Vista.
Attached Images
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 27th, 2007, 12:31 AM
#7
Hyperactive Member
Re: Very Compatible Processor Speed Function
the reason it says your cpu speed is slower than it really is, is because when your not doing any thing on your labtop it slows the cpu down, but if your doing alot of work like, playing a game or watching a dvd it should go up. well at leasts thats what mine dose.
Feb 27th, 2007, 12:33 AM
#8
Re: Very Compatible Processor Speed Function
Thats correct, forgot about that feature on certain CPUs. Supossed to help out with heat and fan speed lowers too.
What CPU do you have?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 27th, 2007, 12:34 AM
#9
Thread Starter
Hyperactive Member
Re: Very Compatible Processor Speed Function
Well, HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\~MHZ has the right value. It says it's 1596mhz.
Feb 27th, 2007, 12:47 AM
#10
Re: Very Compatible Processor Speed Function
Ah just noticed you have a laptop so its the energy saving "m" type processor.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 27th, 2007, 12:48 AM
#11
Thread Starter
Hyperactive Member
Re: Very Compatible Processor Speed Function
Hey, that's weird! I just tried your code again to see what CPU it says I have:
I tried it twice and I got this the first time:
x86 Family 6 Model 14 Stepping 8
Speed: 1596 Mhz
x86 Family 6 Model 14 Stepping 8
Speed: 1595 Mhz
But this again the second time:
x86 Family 6 Model 14 Stepping 8
Speed: 798 Mhz
x86 Family 6 Model 14 Stepping 8
Speed: 797 Mhz
Is there a way to make it constant?
Feb 27th, 2007, 12:52 AM
#12
Re: Very Compatible Processor Speed Function
It could be because of the dual core? 798*2=1596?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 27th, 2007, 12:57 AM
#13
Thread Starter
Hyperactive Member
Re: Very Compatible Processor Speed Function
I guess but it said 1596 one time but then I closed it and tried it again and it said 797 again.
Feb 27th, 2007, 01:01 AM
#14
Re: Very Compatible Processor Speed Function
Ok, this should be it. There is a CurrentClockSpeed and a MaxClockSpeed. Try using the oProcessor.MaxClockSpeed instead.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 27th, 2007, 01:06 AM
#15
Thread Starter
Hyperactive Member
Re: Very Compatible Processor Speed Function
Feb 27th, 2007, 01:17 AM
#16
Re: [RESOLVED] Very Compatible Processor Speed Function
Here is the listing of all the CPU properties.
vb Code:
txtProcessor.Text = txtProcessor.Text & "AddressWidth: " & oProcessor.AddressWidth
txtProcessor.Text = txtProcessor.Text & "Architecture: " & oProcessor.Architecture
txtProcessor.Text = txtProcessor.Text & "Availability: " & oProcessor.Availability
txtProcessor.Text = txtProcessor.Text & "Caption: " & oProcessor.Caption
txtProcessor.Text = txtProcessor.Text & "ConfigManagerErrorCode: " & oProcessor.ConfigManagerErrorCode
txtProcessor.Text = txtProcessor.Text & "ConfigManagerUserConfig: " & oProcessor.ConfigManagerUserConfig
txtProcessor.Text = txtProcessor.Text & "CpuStatus: " & oProcessor.CpuStatus
txtProcessor.Text = txtProcessor.Text & "CreationClassName: " & oProcessor.CreationClassName
txtProcessor.Text = txtProcessor.Text & "CurrentClockSpeed: " & oProcessor.CurrentClockSpeed
txtProcessor.Text = txtProcessor.Text & "CurrentVoltage: " & oProcessor.CurrentVoltage
txtProcessor.Text = txtProcessor.Text & "DataWidth: " & oProcessor.DataWidth
txtProcessor.Text = txtProcessor.Text & "Description: " & oProcessor.Description
txtProcessor.Text = txtProcessor.Text & "DeviceID: " & oProcessor.DeviceID
txtProcessor.Text = txtProcessor.Text & "ErrorCleared: " & oProcessor.ErrorCleared
txtProcessor.Text = txtProcessor.Text & "ErrorDescription: " & oProcessor.ErrorDescription
txtProcessor.Text = txtProcessor.Text & "ExtClock: " & oProcessor.ExtClock
txtProcessor.Text = txtProcessor.Text & "Family: " & oProcessor.Family
txtProcessor.Text = txtProcessor.Text & "InstallDate: " & oProcessor.InstallDate
txtProcessor.Text = txtProcessor.Text & "L2CacheSize: " & oProcessor.L2CacheSize
txtProcessor.Text = txtProcessor.Text & "L2CacheSpeed: " & oProcessor.L2CacheSpeed
txtProcessor.Text = txtProcessor.Text & "LastErrorCode: " & oProcessor.LastErrorCode
txtProcessor.Text = txtProcessor.Text & "Level: " & oProcessor.Level
txtProcessor.Text = txtProcessor.Text & "LoadPercentage: " & oProcessor.LoadPercentage
txtProcessor.Text = txtProcessor.Text & "Manufacturer: " & oProcessor.Manufacturer
txtProcessor.Text = txtProcessor.Text & "MaxClockSpeed: " & oProcessor.MaxClockSpeed
txtProcessor.Text = txtProcessor.Text & "Name: " & objItem.Name
txtProcessor.Text = txtProcessor.Text & "OtherFamilyDescription: " & oProcessor.OtherFamilyDescription
txtProcessor.Text = txtProcessor.Text & "PNPDeviceID: " & oProcessor.PNPDeviceID
txtProcessor.Text = txtProcessor.Text & "PowerManagementSupported: " & oProcessor.PowerManagementSupported
txtProcessor.Text = txtProcessor.Text & "ProcessorId: " & oProcessor.ProcessorId
txtProcessor.Text = txtProcessor.Text & "ProcessorType: " & oProcessor.ProcessorType
txtProcessor.Text = txtProcessor.Text & "Revision: " & oProcessor.Revision
txtProcessor.Text = txtProcessor.Text & "Role: " & oProcessor.Role
txtProcessor.Text = txtProcessor.Text & "SocketDesignation: " & oProcessor.SocketDesignation
txtProcessor.Text = txtProcessor.Text & "Status: " & oProcessor.Status
txtProcessor.Text = txtProcessor.Text & "StatusInfo: " & oProcessor.StatusInfo
txtProcessor.Text = txtProcessor.Text & "Stepping: " & oProcessor.Stepping
txtProcessor.Text = txtProcessor.Text & "SystemCreationClassName: " & oProcessor.SystemCreationClassName
txtProcessor.Text = txtProcessor.Text & "SystemName: " & oProcessor.SystemName
txtProcessor.Text = txtProcessor.Text & "UniqueId: " & oProcessor.UniqueId
txtProcessor.Text = txtProcessor.Text & "UpgradeMethod: " & oProcessor.UpgradeMethod
txtProcessor.Text = txtProcessor.Text & "Version: " & oProcessor.Version
txtProcessor.Text = txtProcessor.Text & "VoltageCaps: " & oProcessor.VoltageCaps
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width