ProcessMemoryReaderLib.ProcessMemoryReader memedit = new ProcessMemoryReaderLib.ProcessMemoryReader();
memedit.ReadProcess = myprocess;
int bytesread; //needed
int byteswritten; //needed
int address = 0x1009624; //address
int value; //value of address
short value2=444; //for writing 2 byte, 444 for the value
byte memory; //for reading byte reading
memory = memedit.ReadProcessMemory((IntPtr)address, 1, out bytesread); //starts out as a byte array...i'm wondering how to get around this...
value = memory;
//writing memory =
memedit.WriteProcessMemory((IntPtr)address, memory, out byteswritten);
As you can see, when you read an address...the value is assigned to a byte array, how do I get around this? Like if I want to read a 4-byte value.
2) I need to be able to make a IntPtr pointer to an address with an offset, aka a pointer...should be simple but i can't figure it out...
3) I need to be able to edit or change the hex dump of an address, for example... lets say the hex dump of an address is 8f 00 00 00 ae 00 3f or something, i need to be able to change it to 8f 01 00 00 00 ae 00 3f. That's just an example...thanks in advance.