Parent Directory
|
Revision Log
|
Patch
revision 243 by william, Sun Jun 3 13:21:51 2012 UTC | revision 245 by william, Sun Jun 3 14:50:09 2012 UTC | |
---|---|---|
# | Line 166 namespace RomCheater.Docking | Line 166 namespace RomCheater.Docking |
166 | { | { |
167 | if (this.AcceptedProcess == null) return; | if (this.AcceptedProcess == null) return; |
168 | GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this); | GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this); |
169 | provider.OpenProvider(); | |
170 | int bytesReadSize; | int bytesReadSize; |
171 | if (provider.WriteProcessMemoryToFile(filename, (uint)start, count, out bytesReadSize)) | if (provider.WriteProcessMemoryToFile(filename, (uint)start, count, out bytesReadSize)) |
172 | { | { |
# | Line 174 namespace RomCheater.Docking | Line 175 namespace RomCheater.Docking |
175 | else | else |
176 | { | { |
177 | 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); | 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); |
178 | } | } |
179 | provider.CloseProvider(); | |
180 | } | } |
181 | #endregion | #endregion |
182 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.22 |