I'm using SHGetFileInfo
to get folders icons. All works fine except when invoking SHGetFileInfo
on "My Computer" special folder - CLSID ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
. For that particular case after call to SHGetFileInfo
the SHFILEINFO.hIcon
struct has zero value. This happens on Windows 7. Earlier on WinXP the code worked fine.
The flags I use for invoking SHGetFileInfo
are SHGFI_ICON
and SHGFI_SMALLICON
, so nothing fancy.
What may be the cause of this? How can I get the "My Computer" icon on Windows 7?