user-0 提问: Windows下如何使用API获取IO使用率，网络IO，iowait时间等信息

回复:
user: user-1
content: 我不提平台的时候，都默认WindowsXP ＋VC6＋MSDN98.

user: user-0
content: 引用 8 楼 zhao4zhong1 的回复:[quote=引用 7 楼 iDoPlay 的回复:] [quote=引用 6 楼 zhao4zhong1 的回复:] 搜“PDH” 恩 这是啥，，，大神能不能说的详细些。[/quote] 查MSDN是Windows程序员必须掌握的技能之一。 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]   多谢大神！我弱弱的问一句Performance Counter Class 与 Performance Data Helper有什么区别呢？ 前者用于.NET 平台？后者呢。

user: user-0
content: 引用 10 楼 zhao4zhong1 的回复:我不提平台的时候，都默认WindowsXP ＋VC6＋MSDN98.  多谢大神！我搞明白了！

user: user-1
content: 引用 7 楼 iDoPlay 的回复:[quote=引用 6 楼 zhao4zhong1 的回复:] 搜“PDH” 恩 这是啥，，，大神能不能说的详细些。[/quote] 查MSDN是Windows程序员必须掌握的技能之一。 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: 引用 6 楼 zhao4zhong1 的回复:搜“PDH” 恩 这是啥，，，大神能不能说的详细些。

user: user-2
content: 其实我跟楼主一样，不知道具体的API的  以前做过驱动开发，大多数这种处理我是通过调用DeviceIoControl向设备发送控制命令来获取一些信息的 至于真正方便快捷的r3 API我就真的不清楚的，或许你可以参考下Nt和ZW开头的API`   例如: NtQueryXXXX或者ZwQueryXXX开头的API~

user: user-0
content: 引用 3 楼 Luisfan 的回复:这个你要自己上MSDN查获取IO相关的资料  怎么找呢，连API的名字也不知道，我只知道获取进程IO信息的，不过 我还是决定一个一个看看！

user: user-3
content: 这个你要自己上MSDN查获取IO相关的资料

user: user-4
content: WMI 应该可以吧

user: user-0
content: 为什么都没有人。。。

user: user-1
content: 搜“PDH”