By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,918 Members | 2,258 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,918 IT Pros & Developers. It's quick & easy.

getting CPU usage in windows 2000

P: n/a
Hi Friends,
I am working on a project for which I need a module in
C for Windows 2000 which would be able to return the exact load on the
cpu at any given time. In windows 98 i can get the cpu load from
registry key HKEY_DYN_DATA but in windows 2000, this registry key is
not there.
I am aware of many utilities and routines that are available
in Unix, but I am specifically looking for something in Windows. Any
help in this matter would be really appreciated.

Thank you.

Sincerely,
Harish
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
harish wrote:
Hi Friends,
I am working on a project for which I need a module in
C for Windows 2000 which would be able to return the exact load on the
cpu at any given time. In windows 98 i can get the cpu load from
registry key HKEY_DYN_DATA but in windows 2000, this registry key is
not there.
I am aware of many utilities and routines that are available
in Unix, but I am specifically looking for something in Windows. Any
help in this matter would be really appreciated.


Windows-specific questions are off-topic here. Try a Windows programming
group. This group discusses the C language as defined by the
international C standard. There is no way in standard C to do what you want.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Nov 13 '05 #2

P: n/a
On 5 Dec 2003 22:30:54 -0800, in comp.lang.c , ha*******@yahoo.com
(harish) wrote:
Hi Friends,
I am working on a project for which I need a module in
C for Windows 2000 which would be able to return the exact load on the
cpu at any given time. In windows 98 i can get the cpu load from
registry key HKEY_DYN_DATA but in windows 2000, this registry key is
not there.


This is offtopic here. I'm sure that one of the countless
windows/win32 programming groups can tell you, and probably they'll
menmion the performance monitoring API. As will the online help, if
you bother to search if.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.