Example #1
0
        private void deattachBtn_Click(object sender, EventArgs e)
        {
            serverInterface.Deattach();

            MessageBox.Show("已解除");
            deattachBtn.Enabled = false;
        }
        private void deattachBtn_Click(object sender, EventArgs e)
        {
            serverInterface.Deattach();

            Thread.Sleep(1000);

            NativeAPI.GacUninstallAssemblies
            (
                new string[] { "HookLib.dll" }
                , "A simple ProcessMonitor based on EasyHook!",
                base64Str
            );
            Thread.Sleep(100);

            MessageBox.Show("已解除");
            injectButton.Enabled = true;
            deattachBtn.Enabled  = false;
        }