1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-01-06 18:23:14 +00:00

Added remote desktop split screen mode

This commit is contained in:
ylianst
2022-01-28 13:16:04 -08:00
parent e4c3af0682
commit 8743d00519
14 changed files with 1166 additions and 64 deletions

View File

@@ -37,7 +37,11 @@ namespace MeshCentralRouter
/// <returns></returns>
public static string GetRegValue(string name, string value)
{
try { return Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router", name, value).ToString(); } catch (Exception) { return value; }
try {
String v = (String)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router", name, value);
if (v == null) return value;
return v.ToString();
} catch (Exception) { return value; }
}
/// <summary>
/// This function querys the registry. If the key is found it returns the value as a boolean