public void Register(Type t) { RegistryKey ProtocolKey = Registry.ClassesRoot.CreateSubKey(RegistryPath); ProtocolKey.SetValue(null, "{" + ProtocolSupport.GetGuid(t) + "}"); Console.WriteLine("Registered ContextHandler:" + Key + "|" + Name); }
public void Register(Type t) { RegistryKey protocolKey = Registry.ClassesRoot.CreateSubKey(RegistryPath); protocolKey.SetValue(null, Description); protocolKey.SetValue("CLSID", "{" + ProtocolSupport.GetGuid(t) + "}"); Console.WriteLine("Registered Protocol:" + Name); }
private static void UnregisterProtocol(Type t) { ProtocolSupport.UnregisterProtocol(t); }