Solved

NT Performance Statistics

Posted on 2002-05-26
2
197 Views
Last Modified: 2010-04-02
Can someone please provide a simple way of getting system statistics (usingh pdh?) for the Windows 2K/XP operating system. I want to be able to provide a string containing the counter name and get the value in return. Possible Use: Getting CPU usage.
0
Comment
Question by:axia
2 Comments
 

Author Comment

by:axia
ID: 7036674
i found some code on EE a while ago, but i don't think it works because i tried to use it for CPU usage and it always returned 99%, even if the perfmon program said somthing else. I tried it for various other values and it returned 0. Could someone please post working code?
0
 
LVL 4

Accepted Solution

by:
rdov earned 100 total points
ID: 7036857
Getting the CPU usage on Windows NT/2000.
http://www.codepile.com/tric21.shtml

if u like to get memory usage use 'GetProcessMemoryInfo' function.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

758 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

13 Experts available now in Live!

Get 1:1 Help Now