반응형
//using Microsoft.Win32
RegistryKey osKey = Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\Internet Settings\\ZoneMap\\Domains\\www.abc.com");
if (osKey == null)
{
RegistryKey oNewKey = Registry.CurrentUser.CreateSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\Internet Settings\\ZoneMap\\Domains\\www.abc.com");
oNewKey.SetValue("http", 0x00000002);
}
RegistryKey osKey = Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\Internet Settings\\ZoneMap\\Domains\\www.abc.com");
if (osKey == null)
{
RegistryKey oNewKey = Registry.CurrentUser.CreateSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\Internet Settings\\ZoneMap\\Domains\\www.abc.com");
oNewKey.SetValue("http", 0x00000002);
}
반응형