Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
get cpu load + temp Posted by daniel rojas on 17 Apr 2005 at 1:18 PM
hey!

im looking for a method to get the current cpu load (in percentages). i had a function once, but it blocked my system like 1 sec before returning the wanted value, and if i want to check the load every second it would block my program constantly. does anybody know a non-blocking method to do this?

i also want to get the read of the current processor temperature. is that possible without installing any additional software? i heard intel hat a program that could be used under vb, but that's not what i want. any standalone windows api/dll would be great.
thanx a lot!
Report
Re: get cpu load + temp Posted by Left Of Right on 24 Aug 2005 at 1:14 AM
Hey,

I don't know much about VB but there are Windows API's for reading the CPU load and the CPU temperature.

For CPU load you could check out ... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/computer_system_hardware_classes.asp

For CPU temperature u could check out ...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/computer_system_hardware_classes.asp

For any of the hardware properties, you could try and look up the WMI (Windows Management Instrument) Class.

Thank you.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.