如何编写适用于 Windows Vista 的 IThumbnailProvider
我按照 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
记录注册 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