Jump to content

Get information from your computer using d2010

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
jonnymr

jonnymr

    Newbie

  • Members
  • Pip
  • 7 posts
Hello,

I am doing a university project and a party is doing in a delphi program to report data such as cpu:
- Cpu temperature,
-% Ram usage, cpu%
- Data from the battery, the power is turned on, etc..

In summary are given of computer hardware.

Any suggestions, code, site is helpful.

Thanks

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
delphi cpu temperature - Google Search
delphi ram usage - Google Search
delphi laptop battery - Google Search

Ultimately, you're using hooks into the system to get this information.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
jonnymr

jonnymr

    Newbie

  • Members
  • Pip
  • 7 posts
Search on google! You think I have not done this before? Are you kidding me? What did you mean 'Ultimately, you're using hooks into the system to get this information.'?

#4
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
Use the WMI interface Windows provides, I'm sure if you searched it you would know what to look for. Your question is too generic, we're here to help not write all the code for you!
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
The operating system provides functionality to access that information. You just need to find how to do it. No, I'm not going to do it for you, because when I'm on Windows, I'm also at work. In all seriousness, you aren't asking about anything new, so yes, I would expect you to spend a little time on google figuring it out. The code you need is in the first few links.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
jonnymr

jonnymr

    Newbie

  • Members
  • Pip
  • 7 posts
friend 'winged', if you do not have a tangible solution, it is ok. In other forums and some sites (of the many visiting searching on google) I was able to answer most of my doubts. Do not waste your time posting comments.

#7
jonnymr

jonnymr

    Newbie

  • Members
  • Pip
  • 7 posts
friend 'null'

I've used wmi to me shows a lot of information, but the temperature for some reason, I can not see. thanks for the suggestion.

#8
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts

jonnymr said:

I've used wmi to me shows a lot of information, but the temperature for some reason, I can not see. thanks for the suggestion.


That's because this information is very motherboard specific. There is no firm guideline on how to provide/retrieve this information. So the way that works with one motherboard manufacturer has little chance to work with another. Even motherboards from the same manufacturer might use different ways to provide/read CPU temp from one model to another.

The reason? Because usually users don't need to care for this information (that including the operating system). AFAIK this information only useful for protecting the CPU from overheating. With this information the motherboard can:
  • Adjust fan speed
  • Activate/deactivate additional fan (if available)
  • cut down the power when the temp already reach extreme value

You can see that there is no need for user intervention in this case.

Edited by LuthfiHakim, 06 December 2010 - 06:28 AM.