Nightinggale
Deity
- Joined
- Feb 2, 2009
- Messages
- 5,378
Well, as I said, Dependency Walker can provide a list of all exports and a list of exports that it thinks are actually called by the .exe

Perl script to loop all .h files. Read them into an array of lines, loop that one and modify the lines containing DllExport if needed. Write the result back into the filename it just read from. I already have working scripts, which read through files line by line meaning the only real work is to write code that compares a line with the output of DW.After that though I'm not sure what to do. I don't relish the idea of removing over 1000 DllExport's by hand, but otherwise you'd need to parse the C++ code somehow... Perhaps a simple but imperfect parser can be made, and then the remaining entries handled by hand?