In my project, I need to load DLLs at run time and I have no information about them prior to that. I need to be able to enumerate the functions with their (decorated) names to be called with LoadLibrary and GetProcAddress (this is a requirement imposed on me). The names may or may not be decorated, and obviously GetProcAddress needs the decorated name if it has one.
Is there a reasonable way to do this?
I can use Depends and other tools to pull out decorated names myself, but this needs to be done at run time. With functions like UnDecorateSymbolName, there's got to be a way to get the decorated name out that I'm missing. I tried SymEnumSymbols but that undecorated the names.
Note that I'm not asking about calling the functions, just enumerating names from the DLL without a .DEF file. I'm on Visual Studio 2010 and it is assumed all DLLs will be compiled on Visual Studio.
