What languages to write windows shell extensions

六月ゝ 毕业季﹏ 提交于 2019-12-23 09:48:10

问题


I know how to write shell extesions in python.
The drawbacks are

  • it does not work on 64 bit Windows
  • I am unsure how creating a python process everytime something “happens” reduces performance.

I know how to write shell extensions using .Net (C#)
The drawbacks are

  • discouraged by MS
  • I am unsure how this reduces performance. (does it?)

I have seen shell extenions written in (free)pascal.

  • Are there drawbacks using this approach
  • Does this work with 64bit windows.

Obviosly one can write shell extensions using c or c++

  • Well... I am still trying to understand com in c and c++....

What other optios are there, what other languages ?
Do they have drawbacks?


回答1:


Since .NET 4 came along, MS now do support .Net for Shell Extensions, since the major problem (cannot host multiple CLR versions in shell) has been solved through the side-by-side mechanism:

With the ability to have multiple runtimes in process with any other runtime, we can now offer general support for writing managed shell extensions—even those that run in-process with arbitrary applications on the machine. We still do not support writing shell extensions using any version earlier than .NET Framework 4 because those versions of the runtime do not load in-process with one another and will cause failures in many cases.




回答2:


because explorer is running all the time, please use a language that is efficient and close to the OS as possible. C or C++ please.



来源:https://stackoverflow.com/questions/3509840/what-languages-to-write-windows-shell-extensions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!