Solved

NT Performance Statistics

Posted on 2002-05-26
2
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

630 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