private void registerTargetInfo(string password, string IP, string type)
{
RegistryKey rkHKCU = Registry.CurrentUser;
RegistryKey rkTargetInfo = null;
try
{
rkTargetInfo = rkHKCU.CreateSubKey("Software\\BlackBerry\\BlackBerryVSPlugin");
if (password == null)
password = "";
if (IP == null)
IP = "";
rkTargetInfo.SetValue(type + "_password", GlobalFunctions.Encrypt(password));
rkTargetInfo.SetValue(type + "_IP", IP);
}
catch
{
}
finally
{
rkTargetInfo.Close();
rkHKCU.Close();
}
}