In C# .net (desktop application). Now on the right click of the folder or file - after clicking on "send to" -> "mail recipient", I want to open my application. I can do this using dll, I want to make dll in c#. here is snap shot that I want to do - Image is taken from the google - "send to mail recipient" - process behind the task is - after click on mail recipient explorer is making a call to registry, takes dll path, it reads the dll. In the dll there is code which identifies file or folder, generates the path of file or folder and calls the "my mail-application" with parameter which has file or folder path.
For that I made registry entries in which I am giving the address of the path and they are perfect. Now issue is with the dll. I don't know how to create the dll in C#, actually problem is how to specify an entry point in dll using c# code and how to pass file or folder information.
So, my question is on the click of "mail recipient", how to call the function which I have specified in dll? You can also give me a rough idea of how to accomplish this.