HKEY_PERFORMANCE_DATA
Dana M. Epp -- eppdm@uniserve.com
Tuesday, January 28, 1997
Environment: NT 4.0, Win95 VC++ 4.2b
I am currently ripping Performance data from the HKEY_PERFORMANCE_DATA with
no problems at all on NT. It gets all the information I want, and I am
happy. However, when this little app is ran on 95, it doesn't seem to return
a proper response for the Registry query. Am I to assume Win95 doesn't have
this Key, or do i have to query it some other way??? I need to be able to
find System CPU usage and System Memory Usage, and as well, if possible...
inidividual process CPU/Memory usage. What method should I use if I cannot
use the HKEY_PERFORMANCE_DATA which I CAN use under NT?
PC'ing you,
Dana M. Epp
eppdm@uniserve.com
http://bedrock.cyberhq.com/dana
"How can one work with the technology of today, using yesterdays
software and methods, and still be on the leading edge tomorrow?
Why settle for less... I won't! "
Bing Hou -- hou@tfn.com
Thursday, January 30, 1997
[Mini-digest: 2 responses]
Try query HKEY_DYN_DATA\perfData key, it has all the stuff you need there.
Bing Hou
hou@tfn.com
------------------------------------------------------------------------
The shortest distance between two points is always under construction.
- Noelie Alito
______________________________ Reply Separator _________________________________
Subject: HKEY_PERFORMANCE_DATA
Author: "Dana M. Epp" at Internet
Date: 1/28/97 3:28 PM
Environment: NT 4.0, Win95 VC++ 4.2b
I am currently ripping Performance data from the HKEY_PERFORMANCE_DATA with
no problems at all on NT. It gets all the information I want, and I am
happy. However, when this little app is ran on 95, it doesn't seem to return
a proper response for the Registry query. Am I to assume Win95 doesn't have
this Key, or do i have to query it some other way??? I need to be able to
find System CPU usage and System Memory Usage, and as well, if possible...
inidividual process CPU/Memory usage. What method should I use if I cannot
use the HKEY_PERFORMANCE_DATA which I CAN use under NT?
PC'ing you,
Dana M. Epp
eppdm@uniserve.com
http://bedrock.cyberhq.com/dana
"How can one work with the technology of today, using yesterdays
software and methods, and still be on the leading edge tomorrow?
Why settle for less... I won't! "
-----From: Eric Haddan
Dana,
To get the performance data in Windows95, use the registry data in HKEY_DYN_DATA\PerfStats.
Initialize the Stat by Querying the value in the StartStat Key, read the Data in the StatData Key,
and end by Querying the value in StopStat.
Eric
| Вернуться в корень Архива
|