Windows Shell Integration Using .NET

What is the easiest / best way to register your program in search engines, right-click on a menu using .NET and C #?
that is, I would like to be able to right-click an item in Windows Explorer and get "Edit using MyProgram"

This is the closest to the tutorial I could find , but it basically just dives into Win32 with .NET and is also deprecated. How to do it now?

+6
c # windows
source share
1 answer

If you just want to add menu items, shell extension will be redundant. You can register a command line in the registry that will run your exe with the selected files (files) as a parameter. Shell extensions are really only needed if you want to change the behavior of the explorer, add custom icons, or copy files based on files based on files.

http://www.codeproject.com/KB/shell/SimpleContextMenu.aspx

If a shell extension is what you need, it’s best to write a thin shell in unmanaged code that accesses another process that is your .NET application through some kind of communication channel with the cross process. Due to all possible version issues, it is not recommended that you load the .NET runtime into the explorer process.

+7
source share

All Articles