When I attempt to use the System.Diagnostics.PerformanceCounterCategory
class, like in this example:
if (PerformanceCounterCategory.Exists("Network Interface")) {
// ...
}
A Win32Exception
with HRESULT -2147467259 occurs at the conditional, with this message:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
I'm under Windows 10, what is the Windows service required to use that class?, I think that I'd enabled all the related performance counters (and networking) Windows services.
Note: I need the identifier name of the required Winows service (and additionally the English display name of the service).