コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }