Cosmos/source/Cosmos.Build.Windows/BuildRegistry.cs
2008-03-17 21:41:45 +00:00

23 lines
623 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;
namespace Cosmos.Build.Windows
{
public static class BuildRegistry
{
public static void Write(string key, string value)
{
RegistryKey xKey = Registry.CurrentUser.CreateSubKey(@"Software\Cosmos");
xKey.SetValue(key, value);
}
public static string Read(string key)
{
RegistryKey xKey = Registry.CurrentUser.OpenSubKey(@"Software\Cosmos");
return (string)xKey.GetValue(key);
}
}
}