ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs
(Generate patch)

Comparing trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs (file contents):
Revision 403 by william, Wed Jun 20 13:24:49 2012 UTC vs.
Revision 404 by william, Thu Jun 21 12:51:57 2012 UTC

--- trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs	2012/06/21 07:13:04	403
+++ trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs	2012/06/21 12:51:57	404
@@ -260,15 +260,8 @@ namespace Sojaner.MemoryScanner.MemoryPr
             catch { address = 0x00; return false; }
         }
         #endregion
-        public 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)
+        #region public virtual void ReadProcessMemoryAtOnce(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
+        public virtual void ReadProcessMemoryAtOnce(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
         {
             bytesRead = 0x00;
             data = new byte[bytesToRead];
@@ -276,6 +269,7 @@ namespace Sojaner.MemoryScanner.MemoryPr
             try { provider.ReadProcessMemoryAtOnce(MemoryAddress, bytesToRead, out bytesRead, out data); }
             catch { bytesRead = 0x00; data = new byte[] { }; }
         }
+        #endregion
         #region public virtual void ReadProcessMemory(int MemoryAddress, int bytesToRead, out int bytesRead, out byte[] data)
         public virtual void ReadProcessMemory(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
         {