请问获得系统中某个进程的cpu使用率和内存使用情况!

解决方案 »

  1.   

    我也想知道。
    刚才在MSDN上查了一下,一无所获,好像没有提供API接口。
    有一节讲“Using PView”的,要的东西倒都有,可惜都在
    对话框里,取不着。
      

  2.   

    http://codeguru.earthweb.com/system/perfmon.shtml
    http://codeguru.earthweb.com/debug/MetAndMem.html
      

  3.   

    这个也许有些帮助.
    http://www.csdn.net/expert/topic/977/977805.xml?temp=.6504022
      

  4.   

    msdn倒是说了通过PDH(performance data helper interface)可以获得cpu和内存的使用情况,但是好像不能针对某个进程!
      

  5.   

    看看PViewer的源代码,在
    MSDN
    PView sample (Setup Services DLL)
    选择pviewer.