you want to call it from Cheat Engine?
if yes then use executeCodeEx, example:
Code:
executeCodeEx(DECLARATION, nil, 0x746050, ContainerId) --where declaration is convention of __cdecl or __stdcall calls
--ContainerId - your container id
and how to know call convention?
Look at the function with disassembler, find the end of that function(must be ret)
if there's any bytes after ret then it means that it has stdcall if not - cdecl
in C++ it would look like this(calling it from injected DLL, in most cases DLL are written in C++):
Code:
void cSlowRateManager_SetSlowRate(SlowRateType SlowType, float SlowTime) noexcept
{
DWORD address = base + 0x532020; // base is game module address
((void(__cdecl*)(SlowRateType, float))address)(SlowType, SlowTime);
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum