Archive for July, 2007

Enter register key into the system

Posted in Uncategorized on July 19, 2007 by bimal4u

  Microsoft.Win32.RegistryKey ckey =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@”SYSTEM\CurrentControlSet\Services\service1″, true);
            if(ckey != null)
            {
                if(ckey.GetValue(“Type”) != null)
                {
                    ckey.SetValue(“Type”, ((int)ckey.GetValue(“Type”) | 256));
                }
            }