Results 1 to 13 of 13

Thread: Can API find the CPU temperature?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Location
    Surrey, England
    Posts
    4

    Question Can API find the CPU temperature?

    I was wondering is there any way to tell the CPU & Sytem Temperature of your pc using API?? i wuld love 2 kno..

    Oh well if you can help me please do it wont take long thanks..

    RearChud37

  2. #2
    Megatron
    Guest
    Unfortunately, this cannot be done with standard API functions

  3. #3
    Megatron
    Guest
    Unfortunately, this cannot be done with standard API functions

  4. #4
    Megatron
    Guest
    Unfortunately, this cannot be done with standard API functions

  5. #5
    Addicted Member Martin Wilson's Avatar
    Join Date
    Mar 2002
    Location
    :)
    Posts
    236
    Did you get that?

  6. #6
    Junior Member
    Join Date
    Jul 2002
    Location
    Montreal, Québec
    Posts
    20
    Short of installing a special device that would monitor the temperature of the CPU and send it back to your computer, that would be rather impossible seeing as the CPU doesn't have a thermometer (be it mercury based ( :P ) or electronical) built in. Not to my knowledge at least.

    You could build a device like that if you know how electronics works, but you could cause irrepairable damage and void your warranty if you don't know what you're doing.

  7. #7
    Most Intel Pentium III and all Intel Pentium 4 chips that I know of come with a built in heat sensor. I don't know if/what are the API calls to read PC BIOS data, but I'm sure some must exist. If you can figure out how to extract information from a PC's BIOS, you should be able to pull out the current CPU temperature.

    It must be possible to do this, maybe not via VB, but certainly programs like ASUS probe and RainMaker do it. Anyone have any thoughts? I'm actually intrigued as to how this could be done.

  8. #8
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    299
    you could probably take a year writing an ASM dll to do it. good luck~

  9. #9

    Thread Starter
    New Member
    Join Date
    May 2001
    Location
    Surrey, England
    Posts
    4

    Red face Errr...

    Ok whats goin on here in my bios there is a thing telling me CPU temperature & sytem temp and they are constantly moving up and down. when the computer gets to a set temp, it sets off the alarm which is really loud & annoying, [u cant turn it off , ok] so i wanted 2 make a program that would warn me when it gets too hot...

    This is my reason i hope u can answer now! sorry...

    RearChud37

  10. #10
    Actually, I did a bit of poking around on the web and it appears that you can obtain System specific information by utilizing the WMI scripting object. http://www.mvps.org/vbnet/index.html...ibaseboard.htm has an article on how to do this, and there are several MSDN articles on how to do it as well.

    I haven't tried any of the same on the above website, but it makes reasonable sense that they'd work as advertised.

    - Art

  11. #11
    Junior Member
    Join Date
    Jul 2002
    Location
    Montreal, Québec
    Posts
    20
    Originally posted by hax0r
    Most Intel Pentium III and all Intel Pentium 4 chips that I know of come with a built in heat sensor.
    I stand corrected. :P If that's the case, then it's just a matter of finding where the heat is stored in memory and under what format, and there you go.

  12. #12
    Addicted Member
    Join Date
    Mar 2001
    Location
    Greece
    Posts
    164

    Not with standard API

    This cannot be done with the standard API functions.

    I have written, however, a similar program in VB for my old motherboard (Asus P5A), just exploiting the DLLs that came with my motherboard's CDROM. (I also retrieved fan speeds, voltages, and motherboard temperature -- all with polling)

    The only reason I did it, was because the monitoring program that came with my m/b was buggy. If this is not the case with you, then I don't see why wasting your time doing something like that


    Some other thoughts :
    > These values should be stored into some registers. Finding the correct addresses and using copymem wouldn't do the job ?

  13. #13

    Thread Starter
    New Member
    Join Date
    May 2001
    Location
    Surrey, England
    Posts
    4

    Exclamation [CPU Temperature] -- Qbasic >> VB

    I stand corrected. :P If that's the case, then it's just a matter of finding where the heat is stored in memory and under what format, and there you go.



    --->
    OK well if all it requires is searching the memory then i suppose i culd do that. Does anyone know what the VB equivilent of QBASIC's PEEK() & POKE() so i can do this???

    Then i guess thats all i need 2 know... ok thanks again..

    RearChud37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width