示例#1
0
 public bool install()
 {
     if (HookCore.install(process))
     {
         IsRegister = true;
         return(true);
     }
     return(false);
 }
示例#2
0
        static void Main(string[] args)
        {
            if (args.Length != 2)
            {
                Environment.Exit(1);
            }
            Process taregt = Process.GetProcessById(int.Parse(args[1]));

            init();
            //HookCore hook = new HookCore(int.Parse(args[1]));
            if (args[0] == "install")
            {
                HookCore.install(taregt);
            }
            else if (args[0] == "uninstall")
            {
                HookCore.uninstall(taregt);
            }
        }