如何编写适用于 Windows Vista 的 IThumbnailProvider

发布于 2024-07-06 13:40:55 字数 113 浏览 6 评论 0原文

我按照 MSDN 上指定的接口编写了一个缩略图提供程序。 然而,我一直无法弄清楚如何以 Vista 实际调用它的方式注册它。 有人找到了适用于 Vista 的缩略图提供程序吗? 示例代码或链接会特别有帮助。

I have written a thumbnail provider following the interfaces specified on MSDN. However, I have been unable to figure out how to register it in a way that Vista actually calls into it. Has anyone gotten a thumbnail provider working for Vista? Sample code or links would be especially helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

悲喜皆因你 2024-07-13 13:40:55

记录注册 IThumbnailProvider 的方法的方法是在 HKCR\.ext\ShellEx\{E357FCCD-A995-4576-B01F-234630154E96} 创建一个注册表项,并将(默认)字符串值设置为 IThumbnailProvider 的 GUID。

您的程序集需要首先注册。 如果使用 .NET,这意味着您将需要使用 RegAsm.exe 工具来注册它。

这里有示例代码: http://www.benryves.com/?mode =已过滤&single_post=3189294

The documented way to register your IThumbnailProvider is to create a registry entry at HKCR\.ext\ShellEx\{E357FCCD-A995-4576-B01F-234630154E96} and set the (Default) string value to the GUID of your IThumbnailProvider.

Your assembly will need to be registered first. If using .NET, that means you will need to use the RegAsm.exe tool to register it.

There is sample code available here: http://www.benryves.com/?mode=filtered&single_post=3189294

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