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 . No开发者_StackOverflow社区w i want to get the icons of the processes and show them to the listCtrl. please help me how can i do that ?? thanks.
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.
精彩评论