Click here to Skip to main content
15,896,527 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi.how can i get cpu tempture in C#.

i got cpu usage easy.now i trying get cpu tempture. please help!!!
Posted

http://msdn.microsoft.com/en-us/library/aa389273.aspx[^]

you can use above link to check the library available to read hardware info.
 
Share this answer
 
v2
There is no generic way to do that - it depends on teh motherbvoard manufacturer.
See here for code which may work, but which probably won't!
Retrieving CPU Temperature using C#[^]
 
Share this answer
 
I'm pretty sure its manufacturer dependent, since they will be accessed through an I/O port. If you have a specific board you're trying to work with, try looking through the manuals and/or contacting the manufacturer.

If you want to do this for a lot of different boards, I'd recommend contacting someone at something like SiSoftware or be prepared to read a LOT of motherboard manuals.

As another note, not all boards have temperature monitors.

You also might run into problems getting privileged access from the kernel.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900