Hello. I try to write a today screen plug-in that display current
running program like "running program list". I enumerate all windows
that are meet the following condictions:
1. The window is not child window
2. The window style contains WS_VISIBLE
3. It length of title string is not zero.
If the window meet all condictions, I use WM_GETICON to get the small
icon. If it fail to get the icon, then I get the process id by calling
GetWindowThreadProcessId and then call OpenProcess to get process
handle and then call GetModuleFileName to get file name. Finally call
SHGetFileInfo to get the icon handle. It works fine but I cannot get
the icons of "Contacts", "Search", "Tasks". It seems the icon not
contains in the program files, but in some other resources files. I
think the reason may be that the user can customize the icons of these
program. Does anyone knows How to get these icons?