Edit: NVM; im an idiot.
Hi all,
Im trying to Register a Delegate on MovementGetGlobals(), and as usual im failing -.-
Here is the pseudocode from ida:
Code:
int __cdecl MovementGetGlobals()
{
return sub_48B550();
}
MovementGetGloabs is 0x1DCFD0 (rebased)
Below is my code(C#):
Code:
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate int MovementGetGlobalsDelegate();
private static MovementGetGlobalsDelegate _getMovementGetGlobals;
uint Address1 = ((uint)Process.GetCurrentProcess().MainModule.BaseAddress + MovementGetGlobalsAddress);
_getMovementGetGlobals = Helper.Magic.RegisterDelegate<MovementGetGlobalsDelegate>(Address1);
I cant see why this is erroring, but maybe you guys can?
Thanks