View previous topic :: View next topic |
Author |
Message |
VikFreeze Newbie cheater
Reputation: 0
Joined: 14 Feb 2010 Posts: 21 Location: Basking in the warm glow of several computer monitors
|
Posted: Mon Aug 01, 2016 9:40 am Post subject: CPU Temperature Gadget |
|
|
Hi everyone!
I see the Forum is still alive and looks exactly the same as it did years ago, man its good to be back!(DB your avatar cracks me up)
<Backstory>
Back in in the dark ages(Vista) there were these little Plug-ins called gadgets, witch were(mostly) just a flashy way to use up the little system resources you had left... but there was one that was actually useful, a little gadget that sat in the corner and shows ram usage, load and temperature for each core.
Now i didn't stick too long with Vista because i like my PC to not run like a cheetah with 3 legs but i did want to keep using that gadget... and i did, retrofitting the gadgets functionality to win7 on my devices, i got it to work till recently with the advent of both a new rig(and what a rig it is ) and the switch to win10, the driver used by the gadget doesn't work with this CPU(i7 5960X)
<\Backstory>
So with that i decided to remake the gadget in C#.
And i managed to do almost everything with just .NET and WMI, there's even a section for CPU temperature define in WMI but unfortunately no one bothers to implement it so i look like i have to read this info from the CPU using the RDMSR instruction witch requires ring0 witch requires a kernel driver... this is where the plot thickens
I use RealTemp on my system and it reads out the info i need so i nicked the driver it uses but im drawing a blank on how to use it and im hoping someone here can help me.
I have 4 files: WinRing0.dll, WinRing0.sys, WinRing0x64.dll and WinRing0x64.sys
The dlls export a RDMSR function but it doesn't seem to return anything, i believe im suppose to hookup the .sys file in the OS but i don't know how...
Any help please?
_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Mon Aug 01, 2016 1:19 pm Post subject: |
|
|
Before you dive into this more, have you heard of rainmeter?
https://www.rainmeter.net/
It is an open source project that brings the gadgets back and is fairly popular.
_________________
- Retired. |
|
Back to top |
|
 |
VikFreeze Newbie cheater
Reputation: 0
Joined: 14 Feb 2010 Posts: 21 Location: Basking in the warm glow of several computer monitors
|
Posted: Mon Aug 01, 2016 2:08 pm Post subject: |
|
|
No, i didn't know about it but this looks like a lot more stuff then what i want...
I might look into this later on but for now i really want to put the final touch on this project since i'm so pumped about it(see attachment).
Simple clean sharp no nonsense info window witch is nailed in place and impossible to close aside from killing the process.
This is the best part about doing it myself, i can make it behave just as i want it to, im thinking of tacking on GPU info afterwards
Description: |
Really proud of how it looks(Note the correct RAM specs witch a lot of these monitoring tools tend to get wrong) |
|
Filesize: |
233.84 KB |
Viewed: |
12068 Time(s) |

|
_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Mon Aug 01, 2016 7:43 pm Post subject: |
|
|
WinRing0 is open source, just google around for it and you should be able to find it as well as how to use it.
_________________
- Retired. |
|
Back to top |
|
 |
VikFreeze Newbie cheater
Reputation: 0
Joined: 14 Feb 2010 Posts: 21 Location: Basking in the warm glow of several computer monitors
|
Posted: Tue Aug 02, 2016 1:45 am Post subject: |
|
|
Ive been googleing around for a week now and all i found is http://openlibsys.org/ witch doesn't seem to be active anymore, even all the other tools(core temp, real temp etc) seem to be using some old version of winring0 and there's no trace of any source code for it...
Hmm... the source for virtual checker is available and it uses winring0, perhaps i can figure out how it uses the driver and replicate it in my project.
_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
|
Back to top |
|
 |
VikFreeze Newbie cheater
Reputation: 0
Joined: 14 Feb 2010 Posts: 21 Location: Basking in the warm glow of several computer monitors
|
Posted: Wed Aug 03, 2016 1:48 am Post subject: |
|
|
Nice, i only came across a old github projects that didn't have any source in them.
I also figured out how to hook up the .sys file and managed to read the TjMax from the CPU, now i just have to find the addresses for the temp values out of the intel docs.
I might even write my own driver for the lols.
If anyone wants this gadget too leave a message here and i might make a consumer friendly version for the masses if there are enough ppl interested.
_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson |
|
Back to top |
|
 |
VikFreeze Newbie cheater
Reputation: 0
Joined: 14 Feb 2010 Posts: 21 Location: Basking in the warm glow of several computer monitors
|
Posted: Fri Aug 12, 2016 5:51 am Post subject: |
|
|
And here it is, the final thing including auto start on login and auto positioning in the upper-right corner were it belongs
Now i can uninstall the whole deprecated gadgets runtime and call it a job well done.
Now to call up Domino's and see if they will make me a balogne sandwich with pizzas instead on bread and 3 pizzas instead of balogne
Description: |
|
Filesize: |
29.29 KB |
Viewed: |
11332 Time(s) |

|
_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson |
|
Back to top |
|
 |
|