Page 1 of 1

DLL or source code

Posted: Wed Feb 27, 2008 1:30 am
by mojo
Any chance of a DLL version or the source being released? Or maybe just the stuff for reading the DTS. There is some source floating about on the web to do it in C, but it needs a driver.

It would be very useful to read temperature data in other programs, and currently there is no good way of doing it. You have to run some bulky program like SpeedFan, the ancient MBM or Everest just to get temp data. If I already have a monitoring program (e.g. LCD Smartie) I don't need another!

Someone really needs to make a DLL for getting system info like CPU temperature, SMART data, fan speeds etc. I wanted to do it but getting hardware info is next to impossible it seems :(

Posted: Wed Feb 27, 2008 11:05 pm
by imposter
Thecoolest doesn't share the coretemp source code. however does uses a driver to read the core tempertures of the cpu.

Posted: Wed May 28, 2008 11:46 am
by The Coolest
There's a DLL to access Core Temp's data, if you're still interested.
http://www.alcpu.com/CoreTemp/developers.html

Posted: Sun Nov 30, 2008 11:59 pm
by CoreTemp-User084
Edit: lol, didnt notice how old the post was :x.

I suggest downloading winring0.dll to read core temps. It is what Real Temp uses to read core temps; the rest of the program really just fiddles with what the dll reports. You can read a lot of other system data with the dll. Take a look through the doc.

http://openlibsys.org/

Once you have the dll, here's how to read temps (borland c++ builder). The below is using a TJMax of 100, change that to suit your needs since different processors have a different tjmax.

Code: Select all

//This must be called first
InitializeOls();

void GetTemps(DWORD* iTemp, int iCoreNum)
{
	DWORD dwEAX, dwEDX;
 
	RdmsrEx( 0x19C , &dwEAX , &dwEDX , iCoreNum );

	dwEAX = dwEAX & 0xFF0000;
	dwEAX = dwEAX >> 16;

	*iTemp = 100 - dwEAX;
}