VC++ get DLL export function list (with source code)

VC++ commonly used functions package code a series of articles and source code (advertisement, haha, look at the series and then decide whether to subscribe)

https://blog.csdn.net/kaizi318/article/details/108846326

The source code demo has been uploaded to the Baidu network disk: permanently effective, the code realizes the list of all the function names of the DLL export functions,

The main application scenarios are mainly used for tools or other purposes. Of course, you need to know the prerequisite parameters. You can complete the configuration file.

Binding, sometimes there are still usage scenarios!

I have encapsulated the related functions into classes, and you can get this function by calling a few simple lines of functions!

                CDumpFunc dump;
                dump.DumpFile(pathFile.c_str());
                // Update the export function drop-down list
                CStringList csl;
                dump.GetFunList(&csl);
                POSITION rPos;    

 

pathFile is the DLL path! It's that simple!

First look at some key codes:

 

void CDumpFunc::DumpExportsSection(PBYTE pImageBase, PIMAGE_NT_HEADERS pNTHeader)     
{
    PIMAGE_EXPORT_DIRECTORY pExportDir;
    PIMAGE_SEC

Guess you like

Origin blog.csdn.net/kaizi318/article/details/108897702