Get signatures of exported functions in a DLL

后端 未结 3 986
你的背包
你的背包 2020-12-01 15:55

Is it possible to get an exported (C style?) function\'s signature (parameter count/types, return type) from a DLL? I can view the list of function names, addresses, ordinal

3条回答
  •  攒了一身酷
    2020-12-01 16:33

    In C++, the function signatures are "mangled" into the name in a compiler-dependent way. This doesn't happen in C. So, if you have C functions in your DLL, you'll see unmangled names. If it's a C++ one, you'll see mangled ones.

    C++ needs mangled names to allow the linker to resolve overloaded functions with different signatures.

    I don't think there's any way for you to get the function singatures from a "C" DLL. They simply aren't present.

提交回复
热议问题