Search code examples
c++windowsmfcprocesslistctrl

get processes icon mfc c++


I am making a Process-Viewer like app. in windows which displays all the processes currently running in a CListCtrl . Now i want to get the icons of the processes and show them to the listCtrl. please help me how can i do that ?? thanks.


Solution

  • You can accomplish this using any of the following methods:

    Of these, the SHGetFileInfo may be the easiest.