|
-
May 12th, 2004, 06:23 AM
#1
Query CPU usage
Is there any other way to query the CPU usage other than using RegQueryValueEx?This is creating lots of problems....
-
May 12th, 2004, 05:17 PM
#2
-
May 14th, 2004, 04:34 AM
#3
You can also get CUP usage using PDH counters. MSDN describes how to use PDH.
Hope this helps.
Thanks
-- Kedar
-
May 17th, 2004, 09:52 AM
#4
Thanks..
but iam facing a new problem now,,,,iam not able to c "processor" object in my perfmon..is there anyway by using PDH..i can programatically do it....
-
May 20th, 2004, 01:35 PM
#5
The wmi interface provides access to all the performance counters.
A search on the microsoft web site will provide lots of doc as well as sample c++ code.
-
June 14th, 2004, 04:57 AM
#6
On win2k and XP the processor object might be disabled.
Enable it by modifying the registry:
HKEY_LOCAL_MACHIN\SYSTEM\CurrentControlSet\Services\PerfOS\Performance. Set "Disable Performance Counters" to 0.
-
June 14th, 2004, 06:01 AM
#7
Take a look at the following thread...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|