Exemplo n.º 1
0
        private void btnOpenProcess_Click(object sender, EventArgs e)
        {
            string pid = ltBox.SelectedItem.ToString();

            pid = pid.Substring(0, pid.IndexOf('-', 0));
            if (!pid.Equals(""))
            {
                lib.iOpenProcess(pid);
                MessageBox.Show("Process opened");
            }
        }
Exemplo n.º 2
0
        // 프로세스를 열어 연결한다.
        private void btnOpenProcess_Click(object sender, EventArgs e)
        {
            string pid = ltBox.SelectedItem.ToString();

            pid = pid.Substring(0, pid.IndexOf('-', 0));
            if (!pid.Equals(""))
            {
                lib.iOpenProcess(pid);
                lib.iInitMemoryScanner(Process.GetCurrentProcess().MainWindowHandle.ToInt32());
                MessageBox.Show("Process opened");
                scanopt              = TScanOption.soExactValue;
                varopt               = TVariableType.vtDword;
                startscan            = "$0000000000000000";
                endscan              = "$7fffffffffffffff";
                unicode              = false;
                casesensitive        = false;
                btnNewScan.Enabled   = true;
                btnFirstScan.Enabled = true;
            }
        }