Shell Integrate in Windows for a Specific File Type With C# -


So I've discovered a guide to integrate my application with C # (Add it to the right click menu) , But I do not know how to do this that only for a specific file type. I know that this is possible because WinRar does this so how can I do this?

There are usually two ways that you can apply it.

  1. Registry key - You can type keys and values ​​under HKEY_CLASSES_ROOT. If you look at that hive then you will see extensions on your PC. See this for details of keys and prices with your app. Myfile is something like easy to open the type of option here. Shell Extensions (Written in COM): Here you can do more complex stuff like they will call by Windows so that you can work as a color on the menu, or add custom actions when a file is right-click here More, you can also add asset sheets and custom tooltips.

    You will know about something that does not use .NET to write a shell handle on the net **. This applies only to older versions. NET

    This article will not suggest

    WHY ** :

    When you write a shell handler, it is a host process (usually But by Windows Explorer), but there are things like File OpenDialogues and Folder Browser Dialogues. So there is a problem if you write a shell extension in nat 2.0, and one. The Open 1.1 app, which is called a file Open Dialogue and then your .NET 2.0 Shell handler, will be called and the old CLR and version contradiction in your .NET 1.1 app.

    So I'm happy to know that in the end it has been fixed in .NET 4 in any way)

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -