Hi, how would I get the temperature and percentage of load for my CPU, GPU, and other things like the hard drive? I'm on Windows XP. Is there something in the Win32 API or what?

A search through the WinAPI turned nothing like what you want. My guess is that those are things only XP knows and keeps them secret. I could be quite wrong though.

on linux you would just grep sysctl for a block of info

$ sysctl -a |grep therm
...

or query for the specific variable

$  sysctl hw.acpi.thermal.tz0.temperature
hw.acpi.thermal.tz0.temperature: 54.0C

on windows... i dunno. you can always find some freeware GUI application such as this, but unfortunately has no command line interface that i'm aware of.

f you can find something similar that allows command line interface, you can do a system() command to query it. which still won't help you develop a commercial application, but might do in a pinch for a personal project or internally distributed app.

if you need something more professional, you'll have to roll your own API.


.

Yes, there are always Win32 apis for eveything
See on Win32 api group

commented: crap link. -1
commented: Oh God, you're annoying! -1

then perhaps you can enlighten us by pointing to one, rather than a generic newsgroup link? and thanks for hiding a link that crapped all over my Outlook Express, by the way. :icon_rolleyes:

EDIT: oh i see that's your favorite all time link. do ya get the feeling that your posts are worthless? apparently, everyone else does.

.

marco93 is just a bot that's managed to strangely survive for so long.

Everything about Win32 api has been answered for 20 years on Win32 api group
Everything about Excel has been answered for 20 years on Excel group
etc...

Why reposting questions answered hundreds of times on NNTP, before DejaNews ?!
(even on BBS in 1985 for Windows 1.0, with different methods of course !)
Are you just born ?

commented: are you still here? -2
commented: stfu -1

do ya get the feeling that your posts are worthless? apparently, everyone else does.
.

No, his help is highly valuable.
The Win32 group is fantastic, a goldmine for Windows developers, with incredible undocumented tips (that
you can't even find in Msdn), from the greatest Win32 gurus in the world (MS internal or not) !

commented: I wonder if you have the same IP as marco93... -2

well, then maybe one of you Win32 API gurus can post something remotely resembling an answer to the OP's question??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.