ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/FloatingRamDumperDialog.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/FloatingRamDumperDialog.cs (file contents):
Revision 168 by william, Mon May 28 08:32:18 2012 UTC vs.
Revision 169 by william, Mon May 28 08:49:42 2012 UTC

--- trunk/RomCheater/Docking/FloatingRamDumperDialog.cs	2012/05/28 08:32:18	168
+++ trunk/RomCheater/Docking/FloatingRamDumperDialog.cs	2012/05/28 08:49:42	169
@@ -184,7 +184,14 @@ namespace RomCheater.Docking
             reader.ReadProcess = this.AcceptedProcess;
             reader.OpenProcess();
             int bytesReadSize;
-            reader.DumpMemory(filename, (uint)start, count, out bytesReadSize);
+            if (reader.DumpMemory(this.AcceptedProcess,filename, (uint)start, count, out bytesReadSize))
+            {
+                MessageBox.Show(string.Format("Succefully dumped memory (0x{0:x8}-0x{1:x8}) from pid=({3}) to file {2}", start, start + count, filename, string.Format("0x{0:x4} {1}.exe", this.AcceptedProcess.Id, AcceptedProcess.ProcessName)), "", MessageBoxButtons.OK, MessageBoxIcon.Information);
+            }
+            else
+            {
+                MessageBox.Show(string.Format("Failed to dump memory (0x{0:x8}-0x{1:x8}) from pid=({3}) to file {2}", start, start + count, filename, string.Format("0x{0:x4} {1}.exe", this.AcceptedProcess.Id, AcceptedProcess.ProcessName)), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
+            }
             reader.CloseHandle();            
         }
         #endregion