/// <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); } } }
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); }
/// <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(); } }
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); }