How i can monitoring CPU memory usage and disk space

Posted on 2005-04-25
Last Modified: 2013-11-20

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


Question by:yac23nar
    LVL 14

    Accepted Solution

    You can use the Performance Data Help api's to get cpu usage:

    or go right to the registry:

    For an example of this that comes with your OS, do Start->Run and type in perfmon .
    LVL 14

    Expert Comment

    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:

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
    Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now