Reading the value stored at a memory location

  • Thread starter Thread starter Boltar
  • Start date Start date
B

Boltar

Hello,

I am relatively new to C#.

There is a particular address in memory on my computer that stores a
string value. The address is 57E777.

Does anyone know how I can retrieve the string value stored at this
address and store it in a string variable?

I have tried using pointers to do this but with no success.

Thanks for any help,
Aqua
 
Boltar,

I don't see how this is possible. Is the address in the virtual address
space of the current process? If that is the case, and it is null
terminated, then you can call the static PtrToString methods on the Marshal
class, passing an IntPtr with the value of 57E777 (although I don't see how
that is possible either, as it is not 4 byte aligned).

Hope this helps.
 
Back
Top