views:

299

answers:

1

Hi, I wanted to access the thumb cache of vista and 7 to be used in my ImageList. I know how to do it in XP by means of the thumbs.db files, but in vista and 7 the thumbs.db is not present so how will i do it?

+2  A: 

You need to use IShellItemImageFactory::GetImage().

.NET interop is here. http://www.pinvoke.net/default.aspx/Interfaces.IShellItemImageFactory

There is also a sample using Direct2D and this interface on msdn.microsoft.com.

David C. Blake
tried it but i keep getting an ArgumentException in this line:SHCreateItemFromParsingName(filename, IntPtr.Zero, uuid, out ppsi);
murasaki5
i forgot to remove the '@' on each filename. it is working now thanks for the link...
murasaki5