如何使用c#访问vista和7的缩略图缓存

发布于 2024-08-12 08:05:51 字数 118 浏览 2 评论 0原文

我想访问 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独享拥抱 2024-08-19 08:05:51

您需要使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文