/[RomCheater]/trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs
ViewVC logotype

Diff of /trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs	2013/06/05 03:49:00	517
+++ trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs	2013/06/05 04:31:26	518
@@ -310,14 +310,14 @@
 
         public void ReadProcessMemoryAtOnce(uint MemoryAddress, uint bytesToRead, object UserState)
         {
-            uint size = 1024 * 100;
-            int count = 0;
+            uint size = 10 * 1124;
+            //int count = 0;
             for (uint j = MemoryAddress; j < (MemoryAddress + bytesToRead); j += size)
             {
                 using (ProcessMemoryChunk mem = new ProcessMemoryChunk(m_ReadProcess, (IntPtr)j, (int)size))
                 {
                     byte[] bigMem = mem.Read();
-                    count += bigMem.Length;
+                    //count += bigMem.Length;
                     if (this.OnBytesRead != null)
                     {
                         OnBytesReadEventArgs t = new OnBytesReadEventArgs(this, UserState, bigMem, j, bytesToRead);

 

  ViewVC Help
Powered by ViewVC 1.1.22