改注册表

来源:互联网 发布:将谦卑温柔成绝对 知乎 编辑:程序博客网 时间:2024/04/29 22:14

namespace CONAPP
{
    using System;
    using Microsoft.Win32;

    public class Class1
    {
        public Class1()
        {
            //  
            //   TODO:   Add   Constructor   Logic   here  
            //  
        }

        public static int Main(string[] args)
        {

            RegistryKey regKey1 = Registry.LocalMachine.CreateSubKey("SOFTWARE//Microsoft//Internet Explorer//Extensions//{1AC31710-6759-484f-A129-A70C55485DA2}");

            regKey1.SetValue("ButtonText", "CatchP");
            regKey1.SetValue("CLSID", "{1FBA04EE-3024-11d2-8F1F-0000F87ABD16}");
            regKey1.SetValue("ClsidExtension", "{7463E628-00A6-446F-AA05-036ABBBFDE16}");
            regKey1.SetValue("Default Visible", "Yes");
            regKey1.SetValue("Exec","D://PrintScreen.exe");
            regKey1.SetValue("Icon", "D://CatchP.ico");
            regKey1.SetValue("HotIcon", "D://CatchP.ico");

 

 

 

            return 0;
   
        }
    }
}

原创粉丝点击