Пример #1
0
        public void Register(Type t)
        {
            RegistryKey ProtocolKey = Registry.ClassesRoot.CreateSubKey(RegistryPath);

            ProtocolKey.SetValue(null, "{" + ProtocolSupport.GetGuid(t) + "}");
            Console.WriteLine("Registered ContextHandler:" + Key + "|" + Name);
        }
Пример #2
0
        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);
        }
Пример #3
0
 private static void UnregisterProtocol(Type t)
 {
     ProtocolSupport.UnregisterProtocol(t);
 }