'Adds a single counter path to the paths attribute.  Normally
this will be called by a child class\' speciality functions,
rather than being called directly by the user. (Though it isn\'t
hard to call manually, since almost everything is given a default)
This method is only functional when the query is closed (or hasn\'t
yet been opened).  This is to prevent conflict in multi-threaded
query applications).
e.g.:
query.addcounter(\'Memory\',\'Available Bytes\')'

def addcounter(self, object, counter, instance=None, inum=(-1), machine=None):

    if (not self.active):
        try:
            self.rawaddcounter(object, counter, instance, inum, machine)
            return 0
        except win32api.error:
            return (-1)
    else:
        return (-1)
