I would add a new entry "Share" in Context menu, so with the right click on a file I would see this new entry "Share" in Context Menu. I tried as in the code below, but method CreateSubKey() throw th exception System.UnauthorizedAccessException saying Denied Access to key HKEY_CLASSES_ROOT
const string MenuName = "*\\shell\\NewMenuOption";
const string Command = "*\\shell\\NewMenuOption\\command";
RegistryKey key = null;
key = Registry.ClassesRoot.CreateSubKey(MenuName, RegistryKeyPermissionCheck.ReadWriteSubTree);
key = Registry.ClassesRoot.CreateSubKey(Command, RegistryKeyPermissionCheck.ReadWriteSubTree);
key.SetValue("Share", ObjectToStore);
I saw something on this guide but I think that on .NET2.0 it was different