예제 #1
0
        public MainForm()
        {
            InitializeComponent();

            txtProcessName.Text  = Properties.Settings.Default.ProcessName;
            txtInjectorPath.Text = Properties.Settings.Default.DLLPath;
            txtClassName.Text    = Properties.Settings.Default.ClassName;
            txtMFName.Text       = Properties.Settings.Default.Method;

            InjectorManager.SetCallback(OnInjectSuccess);
        }
예제 #2
0
        private void btnInjectStart_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.ProcessName = txtProcessName.Text;
            Properties.Settings.Default.DLLPath     = txtInjectorPath.Text;
            Properties.Settings.Default.ClassName   = txtClassName.Text;
            Properties.Settings.Default.Method      = txtMFName.Text;
            Properties.Settings.Default.Save();

            string strProcessName = txtProcessName.Text;
            string strDllPath     = txtInjectorPath.Text;
            string strClassName   = txtClassName.Text;
            string strMethodName  = txtMFName.Text;

            InjectorManager.StartInjectTo(strProcessName, strDllPath, strClassName, strMethodName);
        }