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

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

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

revision 403 by william, Wed Jun 20 13:24:49 2012 UTC revision 404 by william, Thu Jun 21 12:51:57 2012 UTC
# Line 260  namespace Sojaner.MemoryScanner.MemoryPr Line 260  namespace Sojaner.MemoryScanner.MemoryPr
260              catch { address = 0x00; return false; }              catch { address = 0x00; return false; }
261          }          }
262          #endregion          #endregion
263          public void ReadProcessMemoryAtOnce(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)          #region public virtual void ReadProcessMemoryAtOnce(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
264          {          public virtual void ReadProcessMemoryAtOnce(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
             bytesRead = 0x00;  
             data = new byte[bytesToRead];  
             if (!EnsureProviderIsOpen()) { return; }  
             try { provider.ReadProcessMemoryAtOnce(MemoryAddress, bytesToRead, out bytesRead, out data); }  
             catch { bytesRead = 0x00; data = new byte[] { }; }  
         }  
         public void ReadProcessMemoryAtOnce(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)  
265          {          {
266              bytesRead = 0x00;              bytesRead = 0x00;
267              data = new byte[bytesToRead];              data = new byte[bytesToRead];
# Line 276  namespace Sojaner.MemoryScanner.MemoryPr Line 269  namespace Sojaner.MemoryScanner.MemoryPr
269              try { provider.ReadProcessMemoryAtOnce(MemoryAddress, bytesToRead, out bytesRead, out data); }              try { provider.ReadProcessMemoryAtOnce(MemoryAddress, bytesToRead, out bytesRead, out data); }
270              catch { bytesRead = 0x00; data = new byte[] { }; }              catch { bytesRead = 0x00; data = new byte[] { }; }
271          }          }
272            #endregion
273          #region public virtual void ReadProcessMemory(int MemoryAddress, int bytesToRead, out int bytesRead, out byte[] data)          #region public virtual void ReadProcessMemory(int MemoryAddress, int bytesToRead, out int bytesRead, out byte[] data)
274          public virtual void ReadProcessMemory(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)          public virtual void ReadProcessMemory(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
275          {          {

Legend:
Removed from v.403  
changed lines
  Added in v.404

  ViewVC Help
Powered by ViewVC 1.1.22