public bool install() { if (HookCore.install(process)) { IsRegister = true; return(true); } return(false); }
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); } }