Exemplo n.º 1
0
        internal static string x0ba0e0095169fb2c(Type x3201d6d15a947682)
        {
            object[] customAttributes = x3201d6d15a947682.GetCustomAttributes(typeof(RegistryKeyNameAttribute), false);
            if ((customAttributes == null) || (customAttributes.Length <= 0))
            {
                return(x3201d6d15a947682.Name);
            }
            RegistryKeyNameAttribute attribute = (RegistryKeyNameAttribute)customAttributes[0];

            return(attribute.xaf6ccd5c85247969);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Uns the register extension.
        /// </summary>
        /// <param name="t">The t.</param>
        public static void UnRegisterExtension(Type t)
        {
            string str = RegistryKeyNameAttribute.x0ba0e0095169fb2c(t);

            foreach (TargetExtensionAttribute attribute in TargetExtensionAttribute.AttributesFromType(t))
            {
                if (Enum.IsDefined(typeof(RegistryHive), attribute.rh))
                {
                    attribute.RootKey.DeleteSubKey(attribute.fileExtension + @"\Shellex\PropertySheetHandlers\" + str, false);
                }
                else
                {
                    Registry.ClassesRoot.DeleteSubKey(attribute.ProgID + @"\Shellex\PropertySheetHandlers\" + str, false);
                }
            }
        }
Exemplo n.º 3
0
        public static void UnRegisterExtension(Type t)
        {
            string str = RegistryKeyNameAttribute.x0ba0e0095169fb2c(t);

            foreach (TargetExtensionAttribute attribute in TargetExtensionAttribute.AttributesFromType(t))
            {
                if (Enum.IsDefined(typeof(RegistryHive), attribute.rh))
                {
                    attribute.RootKey.DeleteSubKey(attribute.fileExtension + @"\Shellex\ContextMenuHandlers\" + str, false);
                }
                else
                {
                    Registry.ClassesRoot.DeleteSubKey(attribute.ProgID + @"\Shellex\ContextMenuHandlers\" + str, false);
                }
            }
            x443cc432acaadb1d.x43908261d1e1c129(t);
            //  x443cc432acaadb1d.SHChangeNotify(0x8000000, 0, IntPtr.Zero, IntPtr.Zero);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Registers the extension.
        /// </summary>
        /// <param name="t">The t.</param>
        public static void RegisterExtension(Type t)
        {
            string str = RegistryKeyNameAttribute.x0ba0e0095169fb2c(t);

            foreach (TargetExtensionAttribute attribute in TargetExtensionAttribute.AttributesFromType(t))
            {
                RegistryKey key;
                if (Enum.IsDefined(typeof(RegistryHive), attribute.rh))
                {
                    key = attribute.RootKey.CreateSubKey(attribute.fileExtension + @"\Shellex\PropertySheetHandlers\" + str);
                }
                else
                {
                    key = Registry.ClassesRoot.CreateSubKey(attribute.ProgID + @"\Shellex\PropertySheetHandlers\" + str);
                }
                key.SetValue(string.Empty, t.GUID.ToString("B"));
                key.Close();
            }
        }
Exemplo n.º 5
0
        public static void RegisterExtension(Type t)
        {
            string str = RegistryKeyNameAttribute.x0ba0e0095169fb2c(t);

            foreach (TargetExtensionAttribute attribute in TargetExtensionAttribute.AttributesFromType(t))
            {
                RegistryKey key;
                if (Enum.IsDefined(typeof(RegistryHive), attribute.rh))
                {
                    key = attribute.RootKey.CreateSubKey(attribute.fileExtension + @"\Shellex\ContextMenuHandlers\" + str);
                }
                else
                {
                    key = Registry.ClassesRoot.CreateSubKey(attribute.ProgID + @"\Shellex\ContextMenuHandlers\" + str);
                }
                key.SetValue(string.Empty, t.GUID.ToString("B"));
                key.Close();
            }
            x443cc432acaadb1d.xa346e04a75e6b993(t);
            //  x443cc432acaadb1d.SHChangeNotify(0x8000000, 0, IntPtr.Zero, IntPtr.Zero);
        }