在Windows资源管理器显示自定义页眉或列 [英] Display custom header or column in Windows Explorer

查看:511
本文介绍了在Windows资源管理器显示自定义页眉或列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序增加了一些自定义的元数据文件。我想在Windows资源管理器中是这样显示的:

My app adds some custom metadata to files. I want to display it in Windows Explorer like this:

或者这样的:

有没有办法做到这一点。NET中?

Is there a way to do this in .NET?

推荐答案

可以在XP上使用列处理程序外壳扩展做 - 在这里看到: 的http://www.$c$cproject.com/Articles/3747/Explorer-column-handler-shell-extension-in-C#

It can be done on XP using a Column Handler shell extension - see here: http://www.codeproject.com/Articles/3747/Explorer-column-handler-shell-extension-in-C#

然而不支持Vista和起来。在这里,你必须执行 PropertyHandler 。请参阅Windows SDK \样本\ winui \壳牌\ AppShellIntegration \ PropertyHandlers

However IColumnHandler is not supported on Vista and up. Here you have to implement PropertyHandler. See Windows SDK \Samples\winui\Shell\AppShellIntegration\PropertyHandlers.

每个属性地产模式的XML文件中描述。此属性架构必须与 PSRegisterPropertySchema注册()。物业处理程序实现 IInitializeWithXXX IPropertyStore 和任选 IPropertyStoreCapabilities 。您必须先注册的 CLSID 的实施要处理的文件扩展名。

Each property is described by property schema XML file. This property schema must be registered with PSRegisterPropertySchema(). Property handler implements IInitializeWithXXX, IPropertyStore and optionally IPropertyStoreCapabilities. You have to register CLSID of your implementation for each file extension you want to handle.

不幸的是,你不能使用 AllFileSystemObject * 登记。

Unfortunately, you cannot use AllFileSystemObject or * in registration.

这篇关于在Windows资源管理器显示自定义页眉或列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆