Exemple #1
0
        /// <summary>
        /// Checks to see if bSearch is a search option on right-click of folders
        /// </summary>
        /// <returns>True - set, False - not set</returns>

        public static bool IsSearchOption()
        {
            if (Legacy.CheckIfOldSearchOption())
            {
                Legacy.RemoveOldSearchOption();
            }

            Microsoft.Win32.RegistryKey _key = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(@"Directory\shell\bSearch", false);

            // key exists
            if (_key != null)
            {
                _key.Close();
                return(true);
            }

            // key doesn't
            return(false);
        }