Dynamically P/Invoking a DLL

后端 未结 4 750
夕颜
夕颜 2020-12-18 00:25

What is the best way to dynamically P/Invoke unmanaged code from .NET?

For example, I have a number of unmanaged DLL\'s with common C-style exports between them. I

4条回答
  •  孤城傲影
    2020-12-18 01:15

    This article describes a typesafe managed wrapper for GetProcAddress that should help you out.

    https://docs.microsoft.com/en-us/archive/blogs/jmstall/type-safe-managed-wrappers-for-kernel32getprocaddress

提交回复
热议问题