How to use Pointer + Offset in C#? Question in title ^_^
How to use Pointer + Offset in C#?
Question in title ^_^
Question in title ^_^
private void Write(int Address, float Value)
{
byte[] Buffer = BitConverter.GetBytes(Value);
IntPtr Zero = IntPtr.Zero;
WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
}
public void WriteFloat(int Address, float Value)
{
Write(Address, Value);
}
public float ReadFloat(int Address, int Length = 4)
{
return (float)BitConverter.ToDouble(Read(Address, Length), 0);
}
D