A C# based memory editing library targeting Windows applications, offering various functions to extract and inject data and codes into remote processes to allow interoperability.
I've been trying to achieve this code with MemorySharp read with address and pointer but without success,
`byte[] object_pointer = new byte[4];
int bytesRead;
var objAddress = Base + 0x4C5F4C;
ReadProcessMemory(App.GameProcess.Process.Handle, objAddress, object_pointer, 4, out bytesRead);`
but i get The relative address cannot be greater than the main module size.
I tried this
IntPtr objectPointer = sharp.Read<IntPtr>(Base + 0x4C5F4C);
The problem is there's a pointer stored on memory address i want to read that pointer from the address, the code above works but i have to write more code to change from byte[] to IntPtr to use it again on assembly transaction.
I've been trying to achieve this code with MemorySharp read with address and pointer but without success,
`byte[] object_pointer = new byte[4];
int bytesRead;
var objAddress = Base + 0x4C5F4C;
ReadProcessMemory(App.GameProcess.Process.Handle, objAddress, object_pointer, 4, out bytesRead);`
but i get
The relative address cannot be greater than the main module size.
I tried this
IntPtr objectPointer = sharp.Read<IntPtr>(Base + 0x4C5F4C);
The problem is there's a pointer stored on memory address i want to read that pointer from the address, the code above works but i have to write more code to change from byte[] to IntPtr to use it again on assembly transaction.