user-0 提问: -----获取网卡的包数------

回复:
user: user-1
content: ifconfig里面有，参考下源码吧

user: user-2
content: 引用 5 楼 u012889234 的回复:[quote=引用 3 楼 zhao4zhong1 的回复:] Performance Data Helper You can use the performance data provided by applications, services, and drivers to determine system bottlenecks and fine-tune system and application performance. The easiest way to display the performance data is to use the Performance Monitor application located in the Administrative Tools group.   If you need to collect performance data for your application, the easiest way to do this is to use the interface provided by the Performance Data Helper (PDH) interface. Applications that need more control over performance data collection can use the registry interface directly. This is the method that is used by the functions in PDH.DLL and by the Performance Monitor. It is more efficient for the Performance Monitor to use the registry interface, because it displays counters grouped by object. If you are retrieving individual counters, rather than a group of counters from a particular object, it is just as efficient to use the PDH interface.   This overview discusses both interfaces.   The PDH Interface  The Registry Interface  In addition, this overview discusses how to add your own performance counters, by creating an extensible performance DLL. For more information, see Adding Performance Counters.[/quote] 参考Microsoft SDK\samples\winbase\WinNT\PerfTool\Pdh\StatList\*.*

user: user-2
content: netstat -s

user: user-0
content: 引用 3 楼 zhao4zhong1 的回复:Performance Data Helper You can use the performance data provided by applications, services, and drivers to determine system bottlenecks and fine-tune system and application performance. The easiest way to display the performance data is to use the Performance Monitor application located in the Administrative Tools group.   If you need to collect performance data for your application, the easiest way to do this is to use the interface provided by the Performance Data Helper (PDH) interface. Applications that need more control over performance data collection can use the registry interface directly. This is the method that is used by the functions in PDH.DLL and by the Performance Monitor. It is more efficient for the Performance Monitor to use the registry interface, because it displays counters grouped by object. If you are retrieving individual counters, rather than a group of counters from a particular object, it is just as efficient to use the PDH interface.   This overview discusses both interfaces.   The PDH Interface  The Registry Interface  In addition, this overview discusses how to add your own performance counters, by creating an extensible performance DLL. For more information, see Adding Performance Counters.

user: user-0
content: 引用 2 楼 u012889234 的回复:刚工作。。。。怎么？

user: user-2
content: Performance Data Helper You can use the performance data provided by applications, services, and drivers to determine system bottlenecks and fine-tune system and application performance. The easiest way to display the performance data is to use the Performance Monitor application located in the Administrative Tools group.   If you need to collect performance data for your application, the easiest way to do this is to use the interface provided by the Performance Data Helper (PDH) interface. Applications that need more control over performance data collection can use the registry interface directly. This is the method that is used by the functions in PDH.DLL and by the Performance Monitor. It is more efficient for the Performance Monitor to use the registry interface, because it displays counters grouped by object. If you are retrieving individual counters, rather than a group of counters from a particular object, it is just as efficient to use the PDH interface.   This overview discusses both interfaces.   The PDH Interface  The Registry Interface  In addition, this overview discusses how to add your own performance counters, by creating an extensible performance DLL. For more information, see Adding Performance Counters.

user: user-0
content: 刚工作。。。。怎么？

user: user-3
content: 楼主工作了没