public static int WriteMemory(Process Process, uint[] Offset, uint Value, int size) { uint lpBuffer = 0; uint lpBaseAddress = Offset[0]; for (int i = 1; i < Offset.GetLength(0); i++) { SysApi.ReadProcessMemory(Process.Handle, lpBaseAddress, out lpBuffer, 4, 0); lpBaseAddress = Offset[i] + lpBuffer; } return(SysApi.WriteProcessMemory(Process.Handle, lpBaseAddress, ref Value, size, 0)); }
public static int WriteMemory(Process Process, uint Address, uint Value, int size) { return(SysApi.WriteProcessMemory(Process.Handle, Address, ref Value, size, 0)); }