• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

How i can monitoring CPU memory usage and disk space

Hi,

I must program a software layer for monitorinf  resources systems in real times under Windows xp. How then I to do that?

iwant program this in c++ or in java

thanks




0
yac23nar
Asked:
yac23nar
  • 2
1 Solution
 
waysideCommented:
You can use the Performance Data Help api's to get cpu usage:

http://www.codeproject.com/system/cpdh.asp


or go right to the registry:

http://www.codeproject.com/system/cpuusage.asp

For an example of this that comes with your OS, do Start->Run and type in perfmon .
0
 
waysideCommented:
For disk space you can uuse the GetDiskFreeSpaceEx api to determine this. Here's a nice sample that shows how to do it, using a thread to continuously update the amount:

http://www.codeproject.com/file/ngdiskspacemonitor.asp
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now