Пример #1
0
        private void LaunchButtonClick(object sender, EventArgs e)
        {
            if (processComboBox.SelectedIndex < 0)
                return;

            _hostProcess = _processDictionary[processComboBox.SelectedItem.ToString()];

            if (_hostProcess.HasExited)
                return;

            using (Injector syringe = new Injector(_hostProcess))
            {
                syringe.InjectLibrary("CLRBootstrap.dll");

                Console.WriteLine(@"Hello World");

            }
        }