开发者

get processes icon mfc c++

开发者 https://www.devze.com 2023-02-03 19:05 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消