|
-
Oct 18th, 2007, 12:38 PM
#1
Thread Starter
Junior Member
[RESOLVED] [2005] PerformanceCounter & the GetInstanceNames function
After many varying searches on both this forum and the MSDN library I haven't found any examples that explain or provide code to successfully list all the instance names from a PerformanceCounter.
The performance counter I am trying to use works fine on this PC when i choose the InstanceName in design mode, but for distribution I need this to be selectable by the user.
I would greatley appreciate a sample or a link expaining what I need to declare and how to use it to output a list of InstanceNames to a combobox.
For coding simplicity to start with I have left the performancecounter named 'PerformanceCounter1' and the combobox 'ComboBox1'. I know the solution has something to do with the GetInstanceNames command but i don't know where that is or how to use it.
Any and all help will be appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|