예제 #1
0
 private IntPtr ScanForRecordAddress()
 {
     try
     {
         if (!config.ScanType.ToLower().Equals("offset"))
         {
             ProgressBarForm progressBarForm = new ProgressBarForm();
             progressBarForm.Show();
             Point location = Location;
             int   x        = location.X + Width / 2 - progressBarForm.Width / 2;
             location = Location;
             Point point = new Point(x, location.Y + 100);
             progressBarForm.Location = point;
             progressBarForm.Update();
             Update();
             if (config.BufferSize <= 0)
             {
                 config.BufferSize = 1;
             }
             byte[] numArray = new byte[config.BufferSize * 1024];
             firstRecordAddress = MemoryScanner.ScanRange(memory, (IntPtr)0, (IntPtr)int.MaxValue, config.ByteArray, numArray);
             progressBarForm.Close();
         }
         else
         {
             firstRecordAddress = MemoryScanner.ScanModule(memory, config.Module, config.BaseAddress, config.ByteArray, config.MemoryRange);
         }
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
     }
     return(this.firstRecordAddress);
 }
예제 #2
0
 public IntPtr TestScan(Memory memory, Configuration config)
 {
     return(MemoryScanner.ScanModule(memory, config.Module, config.BaseAddress, config.ByteArray, 65535));
 }