Does windows have performance counters to measure

2019-08-20 16:57发布

问题:

Does windows have performance counters to measure statistics of a dialup connection? Opening up Perfmon I can see that it has a performance counter called "Network Interfaces" which can be used to collect stats on a chosen network interface (mostly LAN cards) but I cannot see my dial up connection in the list here. How do I go about collecting stats like bytes sent/received, speed etc for my dial up connection (which is actually a high speed broadband connection!) What is the perfmon query string I need to use?

回答1:

Ok finally got a solution...the windows Dialup API is known as RAS for some reason. Windows vista has several performance counters for RAS services. You can get the required information by reading these counters. Refer "RAS total" and "RAS Port".



回答2:

You should take a look at the IP helper API functions:

http://msdn.microsoft.com/en-us/library/aa366073%28VS.85%29.aspx