Method Description Issues/Potential Problems
GetCounters Returns the Collection object to the PM DLL, which enumerates through all Collection objects. N/A
GetHelp Returns the help string for the performance object displayed in the Details window of the Performance Monitor. This method isn't used in the PO; at least, I haven't been able to determine where the help string for the PO is displayed.
GetIndex Returns the index value of the performance object. Remember: You must return the value of zero for a PO.
GetName Sets the name that appears in the PM Object drop-down box. This method has a bug: Spaces aren't allowed in any name you return, so "COM is Love" must be "COMISLOVE."
GetNumCounters Returns the number of counters this PO handles. Simply return the Collection object's Count method.
Table 1 Implement the VB Performance Object's Methods. The IPerfmonObject interface includes several important methods, some of which require special attention. It is this interface the PO implements and uses to control any number of counter objects.