Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
in net api dynamic calls

Dynamic API Calls in .NET
#1
1
Better response on post Dynamic API Calls in .NETHere's a way to call APIs without DLLImport. I’ve first saw this years ago at OpenSC.ws as far as I remember and got into the idea. The code was lost since then but I found a copy.

It's a class which can dynamically call a Windows API function at runtime using Reflection.Emit.

Program.cs
Register or login to see this content

DynamicAPI.cs
Register or login to see this content

Image example with output:
Register or login to see this content
"There is no spoon."
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)