API function to get the CPU load
-
Hello, I'm looking for an API function to get the CPU load (or a method to do this based on several API functions). I recently bought a dual core processor and the minimized task manager isn't very helpful with providing quick information as to how each core is used. After digging a little on the net I decided I would be nice to write my own utility, but got stuck. Any ideas how to do this? Any existing apps worth installing? Many thanks, Miron Brezuleanu
-
Hello, I'm looking for an API function to get the CPU load (or a method to do this based on several API functions). I recently bought a dual core processor and the minimized task manager isn't very helpful with providing quick information as to how each core is used. After digging a little on the net I decided I would be nice to write my own utility, but got stuck. Any ideas how to do this? Any existing apps worth installing? Many thanks, Miron Brezuleanu
You need to use the performance counters. See
PdhOpenQuery
for how to get started with the Performance Data Helper APIs.Stability. What an interesting concept. -- Chris Maunder