Get signatures of exported functions in a DLL

DLLs do not store the signatures of the functions they export. Other answers have mentioned C++, and when a C++ function is exported as C++, then the name will indeed be mangled. Demangle it with the right compiler’s mangling scheme, and you’ll have the signature. But most DLLs do not export C++ functions using their C++ names. Instead, the functions a DLL chooses to export are exported using C-style names, so even if the DLL was written in C++, the exported functions still won’t have any signature information.

You don’t have the header? Most vendors include that sort of thing in their SDKs. If you didn’t get one, then complain to the vendor. If you weren’t supposed to get one, then maybe you’re going about your task the wrong way; are you sure you’re supposed to use that DLL directly?

If you do not have the header file, then you might also ask yourself whether you’re really allowed, legally, to use the DLL in your program anyway. If it’s just an arbitrary DLL you found on your system, then even if you can write code for it, you’re probably not allowed to redistribute it when you ship your program.

Leave a Comment