/[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

revision 599 by william, Fri Jun 7 09:55:01 2013 UTC revision 600 by william, Fri Jun 7 10:27:53 2013 UTC
# Line 309  namespace Sojaner.MemoryScanner Line 309  namespace Sojaner.MemoryScanner
309          #endregion          #endregion
310    
311    
312          public void QueryMemoryRegions()          public List<MEMORY_REGION_INFORMATION> QueryMemoryRegions(ulong start, ulong size)
313          {          {
314              ulong location = 0;              List<MEMORY_REGION_INFORMATION> regions = new List<MEMORY_REGION_INFORMATION>();
315              int size = 0;              using (ProcessMemoryChunk mem = new ProcessMemoryChunk(m_ReadProcess, (IntPtr)0, 0))
             using (ProcessMemoryChunk mem = new ProcessMemoryChunk(m_ReadProcess, (IntPtr)location, size))  
316              {              {
317                    regions = mem.QueryMemoryRegions(start, size);
318              }              }
319                return regions;
320          }          }
321    
322          public void UpdateAddressArray(ulong[] addresses, ulong size, out byte[][] values)          public void UpdateAddressArray(ulong[] addresses, ulong size, out byte[][] values)

Legend:
Removed from v.599  
changed lines
  Added in v.600

  ViewVC Help
Powered by ViewVC 1.1.22