get processes icon mfc c++
Question
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:
- The ExtractAssociatedIcon function.
- The SHGetFileInfo shell function
- The IExtractIcon shell interface
- The ExtractIconEx function
Of these, the SHGetFileInfo may be the easiest.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow