简体   繁体   中英

How to access thumbnail cache of vista and 7 using c#

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM