Platform SDK: Performance Monitoring

Counters

The Counters collection object defines methods for adding or removing CounterItem objects and their associated properties. Counters is a one-based collection of CounterItem objects.

SystemMonitorCtl.Counters

Remarks

Item is the default property of the Counters object.

The following are the methods provided by Counters.

Method name Description
Add Adds an instance of a CounterItem object to the Counters collection object for display by the SystemMonitor object.
Remove Removes an instance of a CounterItem object from the Counters collection object.

The following are the properties provided by Counters.

Property name Description
Count Retrieves the number of CounterItem instances in the Counters object.
Item Retrieves the specified instance of a CounterItem object from the Counters collection object.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Smonctrl.odl.

See Also

System Monitor Automation Interface Overview, System Monitor Automation Interface Classes