public void WriteMemoryBytes(IntPtr processHandle, int address, byte[] bytesToWrite) { ProcessFunctions.WriteProcessMemory(processHandle, new IntPtr(address), bytesToWrite, (uint)bytesToWrite.LongLength, out _); }
public void WriteMemoryFloat(IntPtr processHandle, int address, float value) { var bytes = BitConverter.GetBytes(value); ProcessFunctions.WriteProcessMemory(processHandle, new IntPtr(address), bytes, (uint)bytes.LongLength, out _); }