I couldnt find an example of how to run asm stubs or shellcode from C Sharp. Was able to manage it using the old CallWindowProc VB6 trick. Check out this blog post for more information. You can also find some coding tips for the technique in another VB6 blog post here