Hi Tomas,
I've been playing around with DynamicMethod and generating IL at
runtime, with varying levels of success. Currently I'm using
DynamicMethod to generate the IL to load arguments, load function
address, calli and ret. My script gets access to the DynamicMethod
object, which gets passed
I wouldn't recommend using Win32API. It's not well designed interop library.
What you need is calli IL instruction. It takes a pointer to a function and
arguments and calls the function. C# doesn't support this so you need some
helpers. You can either emit them at run-time and call them via del