在Windows资源管理器显示自定义页眉或列 [英] Display custom header or column in Windows Explorer
问题描述
我的应用程序增加了一些自定义的元数据文件。我想在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#
然而 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屋!