private static RegistryKey GetRegistryKey(RegeditTypeEnum regeditType)
 {
     if (regeditType == RegeditTypeEnum.HKEY_CLASSES_ROOT)
     {
         return(Registry.ClassesRoot);
     }
     if (regeditType == RegeditTypeEnum.HKEY_CURRENT_USER)
     {
         return(Registry.CurrentUser);
     }
     if (regeditType == RegeditTypeEnum.HKEY_LOCAL_MACHINE)
     {
         return(Registry.LocalMachine);
     }
     if (regeditType == RegeditTypeEnum.HKEY_USERS)
     {
         return(Registry.Users);
     }
     return(Registry.CurrentConfig);
 }