help for a class in C #

10/09/2012 14:39 xortexx#1
hello,

after multiple web search, I can not find a class in C # that works for read/write memory.
To read the values ​​of the type HP, MP, XP .. no problem, but to read the value of the character's name I can not do it.

You with a class or an idea to solve my problem?
10/09/2012 14:54 Sᴡoosh#2
Use Readprocessmemory() api. You need to read the following way :

Base -> char struct -> name offset -> pointer to start of array of widechar

Not at my dev computer currently or i'd show you a snippet of my bot.

Cheers
10/09/2012 18:28 Interest07#3
Read it in as byte array or whatever first, then convert that to the appropriate string type i.e. for unicode use:

Code:
System.Text.Encoding encoding = System.Text.UnicodeEncoding();
string result = encoding.GetString(bytes, 0, i);
When reading in large chunks of text where you are unsure of the size, keep in mind that if you read in too much at a time (a large default buffer size) there is a chance you end up in unallocated memory, which will result in no data being read at all. Read in smaller chunks of memory at a time for these situations.
10/09/2012 19:25 xortexx#4
Thank you for your information, I'll try to do something.
Sᴡoosh : I would be interested to see your code snippet, it would move me faster.