解决方案 »

  1.   

    http://www.cppblog.com/finehai/archive/2009/09/17/96574.html
      

  2.   

    ProcessList.rar 0 分


    "这是微软的一个例子.用来分析 各种 可执行文件. 还带一个 系统进程 显示. 他是一个 MDI 带分割的"
      

  3.   

    http://download.csdn.net/detail/schlafenhamster/7498359
      

  4.   

    void UpdateProcessList( HWND hDlg )
    {
        // Clears the treeview, obtains a list of process IDs, and shows them
        
        // Get the treeview's HWND, then clear it
        HWND hWnd = GetDlgItem(hDlg,IDC_TREE_PROCESS);
        TreeView_DeleteAllItems( hWnd );
        // Get the list of process IDs
        DWORD aProcesses[1024], cbNeeded;
        if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) ) return;
        // Calculate how many process IDs were returned
        DWORD cProcesses = cbNeeded / sizeof(DWORD);
        // Spit out the information for each ID
        for ( unsigned i = 0; i < cProcesses; i++ ) AddProcessToList( hWnd, aProcesses[i] );
    }EnumProcesses