Lendo o Registro do Windows
public string Registro(string vChave, string vAplicativo)
{
string lStrResultado = "";
Microsoft.Win32.RegistryKey regKey;
regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\\" + vAplicativo + "\\", true);
lStrResultado = regKey.GetValue(vChave).ToString();
return lStrResultado;
}
Igor Alcântara (irarevolution@hotmail.com)