如何使用c#访问vista和7的缩略图缓存
我想访问 vista 和 7 的拇指缓存以在我的 ImageList 中使用。我知道如何在 XP 中通过thumbs.db 文件执行此操作,但在 vista 和 7 中,thumbs.db 不存在,那么我将如何执行此操作?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用 IShellItemImageFactory::GetImage()。
.NET 互操作就在这里。
http://www.pinvoke.net/default.aspx/Interfaces.IShellItemImageFactory
msdn.microsoft.com 上还有一个使用 Direct2D 和此接口的示例。
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.