using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Win32; namespace Atesa.Utilitarios { public class ObtieneParametros { public string GetValueKeyRegedit(string SubKey, string Key, bool Decrypt) { string Respuesta = string.Empty; try { using (RegistryKey RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE")) { RegistryKey SubRegistryKey = RegistryKey.OpenSubKey(SubKey); Respuesta = SubRegistryKey.GetValue(Key, "Value", RegistryValueOptions.DoNotExpandEnvironmentNames).ToString(); } } catch (Exception ex) { throw; } return Respuesta; } } }