locked
Using pdh performance counter for network monitoring RRS feed

  • Question

  • Hi,

     

    I want to monitor network traffic (bytes received/bytes sent) with the PDH Performance Counter and only for Ethernet devices on my machine. So I selected the Ethernet cards by a GetAdaptersInfo and throw away non Ethernet devices. With the Description i filled the performance counter. But unfortunatelly, for my network card I receive from this function: Intel(R) 82574L Gigabit Network Connection #2, but if I use perfmon or the pdh browser, it expects obviously a Intel[R] 82574L Gigabit network Connection _2. This means the () are changed to [] and the # to _.

    Is there a possibility to get the correct name directly?

    Friday, February 3, 2012 11:25 AM

Answers