So i have a managed dll running inside wow process, and i have a pointer to some function.
Now the question is how define a managed function which doesn't accept generic datatypes as parameters? Should i use integer datatype and pass an object pointer as argument?
Example:
Code:
typedef unsigned long ( __thiscall * tCanAttack )( CGLocalPlayer_C * pThis, CGUnit_C * pOther );
Code:
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
public delegate ulong CanAttackDelegate(ulong u1, ulong u2);
public static CanAttackDelegate CanAttack;
Looks like i should pass the reference to an object for reference types, and pass the defined sturcture for value types...