//using Microsoft.Win32
RegistryKey osKey = Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\Internet Settings\\ZoneMap\\Domains\\IP주소);
if (osKey == null)
{
RegistryKey oNewKey = Registry.CurrentUser.CreateSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\Internet Settings\\ZoneMap\\Domains\\IP주소");
oNewKey.SetValue("http", 0x00000002);
}
728x90
반응형
'C#' 카테고리의 다른 글
| User Control Event Handler Example (0) | 2010.08.06 |
|---|---|
| IMessageFilter 사용하는 법 (0) | 2010.07.14 |
| OS 버전 체크 (0) | 2010.02.03 |
| 포함 리소스로 지정된 파일 읽기 (0) | 2010.02.03 |
| 정규식 몇개... (0) | 2010.02.01 |