Hello, not sure if this is an error or i did a mistake. But im trying to call a function from a running process externally.
The function is: double __thiscall sub_2A1E7C(_DWORD *this, float a2, float a3)
static public void Walk()
{
var swed = new Swed("Game");
var moduleBase = swed.GetModuleBase("Game.exe");
Process game = Mem.GetRagWindow("Game");
var address = moduleBase + 0x29CE50; // function address
MemorySharp sharp = new MemorySharp(game);
// Execute code and get the return value as a Vector3 structure
Vector3 vector = sharp[address].Execute<Vector3>(Binarysharp.MemoryManagement.Assembly.CallingConvention.CallingConventions.Thiscall, 17.50, -77.50);
Console.WriteLine(vector);
}
And im getting error: System.ComponentModel.Win32Exception (299): Couldn't read 12 byte(s) from 0x5662FFCC.