private bool GetRegAutoStartValue(ref string KeyValue, RegAutoStartKeyValues ValueName)
 {
     //MModule.PrepareReg();
     string[] arr = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", false).GetValueNames();
     int ForInt = 0;
     for (ForInt = 0; ForInt <= arr.Length - 1; ForInt++)
     {
         if (arr[ForInt] == ValueName.ToString())
         {
             KeyValue = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", false).GetValue(ValueName.ToString()).ToString();
             return true;
         }
     }
     return false;
 }
 private void SetRegAutoStartValue(string KeyValue, RegAutoStartKeyValues ValueName)
 {
     //MModule.PrepareReg();
     Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true).SetValue(ValueName.ToString(), KeyValue);
 }