ReadProcessMemory example plz?

  • Thread starter Thread starter Trammel
  • Start date Start date
T

Trammel

Hi, Im trying to read a single byte from the memory of another process.
This is to create a stand-alone module/wrapper for inclusion in other
programs.

I have done this before using the windows APIs so know it is possible in VB
but it seems alot harder in VB.net and I have lost my orginal VB6 version
due to HDD crash :¬/

Could someone be so kind as to make a simple function to read a single byte
from location 2048 of a program when passed the hwnd?

The function should be like:
Public Function memByte(byval hnd as intptr, byval address as integer) as
byte
...
End Function


Thanks in advance to anyone who can help with a short function or link to an
example that might help in vb.net... I tried searching for a few days but
couldn't find anything... sorry :¬s
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top