// 스캔 타입을 설정한다. private void cbScanType_SelectedIndexChanged(object sender, EventArgs e) { switch (cbScanType.SelectedIndex) { case 0: scanopt = TScanOption.soUnknownValue; break; case 1: scanopt = TScanOption.soExactValue; break; case 2: scanopt = TScanOption.soValueBetween; break; case 3: scanopt = TScanOption.soBiggerThan; break; case 4: scanopt = TScanOption.soSmallerThan; break; case 5: scanopt = TScanOption.soIncreasedValue; break; case 6: scanopt = TScanOption.soIncreasedValueBy; break; case 7: scanopt = TScanOption.soDecreasedValue; break; case 8: scanopt = TScanOption.soIncreasedValueBy; break; case 9: scanopt = TScanOption.soChanged; break; case 10: scanopt = TScanOption.soUnchanged; break; case 11: scanopt = TScanOption.soSearchForThisArray; break; } }
// 프로세스를 열어 연결한다. 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; } }
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; } }
private void cbScanType_SelectedIndexChanged(object sender, EventArgs e) { switch (cbScanType.SelectedIndex) { case 0: scanopt = TScanOption.soUnknownValue; break; case 1: scanopt = TScanOption.soExactValue; break; case 2:scanopt = TScanOption.soValueBetween;break; case 3:scanopt = TScanOption.soBiggerThan;break; case 4:scanopt = TScanOption.soSmallerThan;break; case 5:scanopt = TScanOption.soIncreasedValue;break; case 6:scanopt = TScanOption.soIncreasedValueBy;break; case 7: scanopt = TScanOption.soDecreasedValue;break; case 8:scanopt = TScanOption.soIncreasedValueBy;break; case 9:scanopt = TScanOption.soChanged;break; case 10: scanopt = TScanOption.soUnchanged; break; } }