外壳图标叠加(C#)

我需要一种方法来使用C#或C在 Windows XP / Vista中为文件夹和文件创建Icon Overlay?任何例子?

谢谢,
-Sean!

解决方法

Tigris的 TortoiseSVN产品大量使用由几个Tortoise产品共享的库提供的图标覆盖,覆盖层本身是用C而不是C#编写的.

documentation for the TortoiseOverlays project解释了他们如何使用它以及他们遇到的问题(用户名:访客,空密码),以及GPL的源代码在Subversion repository(与上面相同的用户名/密码).

来自文档的Snippit:

TortoiseOverlays registers itself with the explorer to handle the nine states mentioned above,i.e. it registers nine overlay handlers. The explorer process initializes the TortoiseOverlays handler,calling its IShellIconOverlayIdentifier::GetOverlayInfo(). TortoiseOverlays looks for the registered overlay handlers under HKLM\Software\TortoiseOverlays\Statusname and calls their GetOverlayInfo() method so they can initialize too (Note that any change to the icon name,index,… your handler does are overwritten later and won’t be used – it’s TortoiseOverlays that handles the icons now). After the initialization,TortoiseOverlays relays every call to its IShellIconOverlayIdentifier::IsMemberOf() method to the other handlers. The first handler that returns S_OK determines whether the icon is shown or not.

相关文章

项目中经常遇到CSV文件的读写需求,其中的难点主要是CSV文件...
简介 本文的初衷是希望帮助那些有其它平台视觉算法开发经验的...
这篇文章主要简单记录一下C#项目的dll文件管理方法,以便后期...
在C#中的使用JSON序列化及反序列化时,推荐使用Json.NET——...
事件总线是对发布-订阅模式的一种实现,是一种集中式事件处理...
通用翻译API的HTTPS 地址为https://fanyi-api.baidu.com/api...