0

I'm getting 'Invalid class name' exceptions when trying to monitor changes to the Win32_PerfFormattedData_RemoteAccess_RasPort class on Windows XP. I'm using the code listed here.

Is this class supported on XP? The documentation claims it is, although it's supplied by a different provider. If not, what's a good alternative?

Community
  • 1
  • 1
Thom
  • 2,643
  • 2
  • 30
  • 33

1 Answers1

1

Win32_PerfFormattedData_RemoteAccess_RASPort formatted data class is only found on server operating systems

TStamper
  • 30,098
  • 10
  • 66
  • 73
  • And Vista. But there's definitely no XP alternative? iphlpapi.dll lies, and this class isn't available, there must be some reliable way to get usage stats on XP. – Thom Apr 02 '09 at 17:56
  • In Vista the Formatted Performance Data Provider is no longer available in the operating system, replaced with WMIPerfInst, I believe on XP that class is available but on Formatted Performance Data Provider(http://msdn.microsoft.com/en-us/library/aa390431.aspx) – TStamper Apr 02 '09 at 18:19
  • How do you go about querying the different provider? Does the XP provider support the RemoteAccess performance counters, or some alternative? – Thom Apr 04 '09 at 12:36
  • yes it provides support for the performance counter in the link – TStamper Apr 06 '09 at 20:17
  • So how do I query it with the classes available in the System.Management namespace in .NET? – Thom Jul 21 '09 at 13:52