Thank you! :D
In fact, since the return from the memory is in a byte, there is this function which I have been told to use:
System.Text.UnicodeEncoding.Unicode.GetString(Name )
But i guess they work the same =)
I'm gonna start up cheat engine to get the memory addresses and I'll test the example you posted above.
I'll edit this post in a few minutes...
*EDIT* Okay. I think I have some kind of error in my code... Maybe while I'm retrieving the window handle, I don't know :S.
All the memory addresses I try give me an error and the code you supplied also gives me errors.
I'm using Err.LastDllError and it returns error '6' which means that my variables have the wrong properties (I think).
I changed the declared function into:
PHP Code:
Public Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Long, ByRef lpBuffer As Long, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
and now it returns null.
Any ideas??