public static bool IsMailToShellCommandAvailable() { bool result = false; RegistryKey registryKey = WinformsHelper.GetRegistryKey(Registry.ClassesRoot, "mailto"); if (registryKey != null) { result = (registryKey.GetValue("URL Protocol", null) != null); registryKey.Close(); } return(result); }
public static bool IsValidRegKey(string path) { bool result = false; RegistryKey registryKey = WinformsHelper.GetRegistryKey(Registry.LocalMachine, path); if (registryKey != null) { result = true; registryKey.Close(); } return(result); }