CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Location
    New Zealand
    Posts
    1

    Win2k - CPU Usage

    Can anyone tell me how to get the CPU Usage as a percentage on Windows 2000?



  2. #2
    Join Date
    Nov 1999
    Location
    Alexandria, Virginia, USA
    Posts
    17

    Re: Win2k - CPU Usage

    I found a solution that works for Win9x. Perhaps it will work on 2k, as well.

    I followed along the article, http://support.microsoft.com/support.../q174/6/31.asp and found it gives the solution for acquiring the current CPU load--practically writes the application for you.

    I created a console-app project, created a thread that calls the given functions, and *voila!*. You can get the project and source at http://home.dn.net/~mcmanus/CPU_Performance.zip

    John McManus
    System Engineer
    SAIC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured