DynData
v1.01 A collection of MFC classes to encapsulate the Windows 9x performance
counters (Obsolete)
Ever wanted to write some code to determine the amount of bytes sent or received
by Dial-Up Networking, what is the current CPU Usage or how many threads are currently
running on the system?. The classes provided allow you do query any of these parameters,
or to query the availability of performance objects and their counters both on the
local machine and any machine on the network. Please note that these classes are
not designed to be used on NT, 2000, XP, 2003, Vista. If you would like to retrieve
performance stats on these operating systems, please see the author's
CPdh wrapper classes.
Features
- Simple and clean C++ interface based.
- The classes are fully Unicode compliant (even though HKEY_DYN_DATA is not
available on NT <g>)
- Full documentation is provided in the form of a HTML file
The enclosed zip file contains the source
code and a simple console based application which exercises the class.
Copyright
- You are allowed to include the source code in any product (commercial, shareware,
freeware or otherwise) when your product is released in binary form.
- You are allowed to modify the source code in any way you want except you
cannot modify the copyright details at the top of each module.
- If you want to distribute source code with your application, then you are
only allowed to distribute versions released by the author. This is to maintain
a single distribution point for the source code.
Updates
19 June 2016
- Please note that as Windows 9x has been out of support since July 2006 which
was the end date of Windows ME extended support, I have discontinued development
of this code and it is obsolete.
V1.01 (10 January 2007)
- Updated copyright details.
- Addition of a DYNDATA_EXT_CLASS preprocessor macro to allow the classes
to be more easily added to an extension dll
- Optimized CDynDataObject constructor code.
- Reviewed all TRACE statements for correctness
- Code now uses newer C++ style casts instead of C style casts.
- Item data value passed to the various enumeration functions is now a DWORD_PTR
instead of a DWORD
- ENUMERATE_DYNDATA_OBJECT_COUNTERS is now declared in the CDynDataObject
class scope
- ENUMERATE_DYNDATA_OBJECTS is now declared in the CDynDataEnumerator class
scope
- Updated the code to clean compile on VC 2005
- Fixed a bug in the calculation of the buffer sizes passed to RegQueryValueEx
in CDynDataObject::_EnumCounters
- General code cleanup and code review
- Updated documentation to use the same style as the web site
V1.0 (31 January 1999)