Solved

NT Performance Statistics

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TTimer no longer functioning 7 91
C++ Language error 28 218
FMX enumerated colours 2 100
C++ to C# code conversion issue 4 107
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

777 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