/[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/07 09:40:01	598
+++ trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs	2013/06/07 09:55:01	599
@@ -169,9 +169,9 @@
         ///// ProcessMemoryReader is a class that enables direct reading a process memory
         ///// </summary>
         //private class ProcessMemoryReaderApi
-        //{
-        //    [DllImport("kernel32.dll")]
-        //    public static extern int VirtualQueryEx(IntPtr hProcess, IntPtr lpAddress, out MEMORY_BASIC_INFORMATION lpBuffer, uint dwLength);
+        ////{
+        //[DllImport("kernel32.dll")]
+        //public static extern int VirtualQueryEx(IntPtr hProcess, IntPtr lpAddress, out MEMORY_BASIC_INFORMATION lpBuffer, uint dwLength);
 
         //    // function declarations are found in the MSDN and in <winbase.h> 
 
@@ -309,6 +309,15 @@
         #endregion
 
 
+        public void QueryMemoryRegions()
+        {
+            ulong location = 0;
+            int size = 0;
+            using (ProcessMemoryChunk mem = new ProcessMemoryChunk(m_ReadProcess, (IntPtr)location, size))
+            {
+            }
+        }
+
         public void UpdateAddressArray(ulong[] addresses, ulong size, out byte[][] values)
         {
             // size = size of data to read at each address

 

  ViewVC Help
Powered by ViewVC 1.1.22