sb101
November 24th, 2008, 06:51 PM
Hi folks,
I'm attempting to read memory of a specific Process. This works fine but the problem I'm having is that I would like to speed up the read and the main issue is that I'm doing a *massive* loop to read all the process memory and then keeping the information I require.
So, for example:
for (uint i = 0x00400000; i < 0x7FFFFFFF; i += buffer_count) {
memory = pReader.ReadProcessMemory((IntPtr)i, buffer_count, out bytesRead);
....... }
I think I can get the base address of the process using:
IntPtr startAddr = myProcess.MainModule.BaseAddress;
So I will replace 0x00400000 with startAddr but is there a way to tell where the Process memory ends? This would allow me to stop at a specific address rather than looping to 0x7FFFFFFF all the time.
Thanks all.
sb
I'm attempting to read memory of a specific Process. This works fine but the problem I'm having is that I would like to speed up the read and the main issue is that I'm doing a *massive* loop to read all the process memory and then keeping the information I require.
So, for example:
for (uint i = 0x00400000; i < 0x7FFFFFFF; i += buffer_count) {
memory = pReader.ReadProcessMemory((IntPtr)i, buffer_count, out bytesRead);
....... }
I think I can get the base address of the process using:
IntPtr startAddr = myProcess.MainModule.BaseAddress;
So I will replace 0x00400000 with startAddr but is there a way to tell where the Process memory ends? This would allow me to stop at a specific address rather than looping to 0x7FFFFFFF all the time.
Thanks all.
sb