Method Description Issues/Potential Problems
Collect PM calls this to update its graph. You return the current value of your local variable here. N/A
GetDataType This method returns the data type it's dealing with to the PM. The only currently accepted return value is vbLong. This shouldn't be a problem though, because all counter monitoring can be accomplished with this data type.
GetHelp Returns the help string for this particular CO. N/A
GetIndex This returns the index value of the counter object. Your first CO returns the value 2. The second returns 4, the third 6, and so on. Don't stray from this path.
GetName Sets the name that appears in the PM Counter listbox. Unlike the PO, you can return a name with spaces.
Table 2 One of These Things is a Lot Like the Other. The IPerfmonCounter interface includes several methods that closely mirror those of the IPerfmonObject method. Counter objects implement this interface to return information to the PM, which uses the information returned to update the graphical information it displays.