Shell Icon Overlay (C#)

前端 未结 2 1219
心在旅途
心在旅途 2020-12-04 20:33

I need a method to create Icon Overlay\'s for Folders and Files in Windows XP/Vista, using C# or C++? Any examples?

Thanks, -Sean!

2条回答
  •  囚心锁ツ
    2020-12-04 21:20

    Do not do this! Please, please don't.

    You will break a lot of applications. Shell extensions must not use the .net framework (or any other similar framework), ever.

    Here's an explanation why you must not do this.

    Write your extension in C/C++, but not C#.

    Update: Even though as of .NET4 it's possible to have multiple framework versions in one process, it is still not recommended and not supported by Microsoft! See this post about why:

    [...] These problems led us to officially recommend against—and not support—the development of in-process shell extensions using managed code.

提交回复
热议问题