/[RomCheater]/trunk/RomCheater/Docking/FloatingMemorySectionViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemorySectionViewer.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 12  using System.Diagnostics; Line 12  using System.Diagnostics;
12  using RomCheater.PluginFramework.Events;  using RomCheater.PluginFramework.Events;
13  using Sojaner.MemoryScanner;  using Sojaner.MemoryScanner;
14  using Sojaner.MemoryScanner.MemoryProviers;  using Sojaner.MemoryScanner.MemoryProviers;
15    using ManagedWinapi;
16    
17  namespace RomCheater.Docking  namespace RomCheater.Docking
18  {  {
# Line 45  namespace RomCheater.Docking Line 46  namespace RomCheater.Docking
46          {          {
47              if (process == null) { return; }              if (process == null) { return; }
48              // perform processing when process is updated              // perform processing when process is updated
49                List<MEMORY_REGION_INFORMATION> regions = new List<MEMORY_REGION_INFORMATION>();
50              using (GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this))              using (GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this))
51              {              {
52                  provider.OpenProvider();                  provider.OpenProvider();
53                  provider.QueryMemoryRegion();                  if (this.PEData != null)
54                    {
55                        if (this.PEData.Is32bitAssembly())
56                        {
57                            regions = provider.QueryMemoryRegions(MemorySizeConstants.MinimumAddress, MemorySizeConstants.MaximumAddressSize_x86);
58                        }
59                        else
60                        {
61                            regions = provider.QueryMemoryRegions(MemorySizeConstants.MinimumAddress, MemorySizeConstants.MaximumAddressSize_x64);
62                        }
63                    }
64                    else
65                    {
66                        regions = provider.QueryMemoryRegions(MemorySizeConstants.MinimumAddress, MemorySizeConstants.MaximumAddressSize_x86);
67                    }
68                    
69                  provider.CloseProvider();                  provider.CloseProvider();
70              }              }
71    
# Line 64  namespace RomCheater.Docking Line 80  namespace RomCheater.Docking
80              this.PEData = peData;              this.PEData = peData;
81          }          }
82          #endregion          #endregion
83      
84    
85            public object MEMORY_REGION_INFORMATION { get; set; }
86      }      }
87  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.22