Reading A Processes Memory

I remember posting before about this, but I didn't quite specifie what type of memory I wanted to read. Well I need to know how to read A processes Virtual Memory. I know how to read a single address, but I need to list a whole bunch of addresses into an array. Is this possible?

[295 byte] By [Jeremy6996] at [2008-1-10]
# 1

*bump*

I was thinking the only way to get the addresses, is either to get every combonation written on a text file, but the randomizing takes far to long. Is there any other more productive way.

Jeremy6996 at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

Hi Jeremy,

Based on your post, my understanding of your question is that you need to read a process memory.

You can use the pinvoke mechanism to call the ReadProcessMemory funtion. Please see: http://www.pinvoke.net/default.aspx/kernel32/ReadProcessMemory.html about the signature of the ReadProcessMemory function in the vb.net. Here is one article Minesweeper, Behind the scenes. It demonstrates directly reading another processes memory in C# by using P/Invoke and Win32 Api's.

Best regards,

Riquel.

RiquelDong–MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3

What problem are you attemtping to solve with this?

If the process is executing managed code.... memory is quite fluid.

ReneeC at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 4
I know of "ReadProcessMemory", What I am attemting to do is list all the addresses avalible in that application.
Jeremy6996 at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 5
available for what?
ReneeC at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...