Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ComponentModel.Win32Exception (299): Couldn't read 12 byte(s) from 0x5662FFCC. #30

Open
brenodss opened this issue May 6, 2024 · 0 comments

Comments

@brenodss
Copy link

brenodss commented May 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant