开发者

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

开发者 https://www.devze.com 2022-12-12 09:22 出处:网络
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开发者_如何学

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开发者_如何学Python 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.

0

精彩评论

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