Im looking to build a perfmon type tool and wanted to list out the categories and counters for each as you would see in perfmon. the problem im having is that after digging in to it, it doesnt work as i expected. when you use perfmon it shows it as Category, Counter, Instance, but how you build that list is more so Category, Instance, Counter.
im having a hard time deciding how i should generate the tree. Doing it the correct way seems like it could cause a lot of over head (will be used mostly for remote systems) but doing it the quick way could potentially cause a problem if for instance there are multiple instances with different counters in a category, which i cant seem to figure out if thats possible or not. based on looking at perfmon, i'd say its not possible, but i'd like some proof of that, or a good way to handle it correctly.
Thanks