Platform SDK: Performance Monitoring |
Adds a CounterItem object with the specified path to the Counters collection object for display by the SystemMonitor object.
Public Function Add( pathname as String ) as CounterItem
A reference to the added CounterItem object.
If you specify a wildcard counter in the pathname parameter, the Add method creates one CounterItem object for each expanded path. The Add method then returns a pointer to the first added CounterItem.
If the wildcard would result in a duplicate counter, the error is not reported and no duplicate is created. If an error condition occurs before all counters are created, the error is reported and the remaining counters are not created.
Windows NT/2000: Requires Windows 2000.
Header: Smonctrl.odl.
System Monitor Automation Interface Overview, System Monitor Automation Interface Methods