Solved

NT Performance Statistics

Posted on 2002-05-26
2
206 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C language IDE – Compilers installation 14 74
mixing C++ & C# in Vis Studio 2013 7 195
Autosar OS Multicore Share Resources confusion ? 2 70
Outlook 13 39
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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

790 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