I\'m trying to write an implementation for the purecall handler in c# and then register it using P/Invoke.
I found this example from years ago on net framework: