Get list of required BPLs for a given DLL, EXE or BPL

2.4k views Asked by At

I'm wondering if anyone knows of an elegant way of determining what BPLs are required by a given (compiled) DLL, EXE or BPL.

I'm not sure if this is even possible shy of simply scanning the binary for text references to .bpl filenames (which would be prone to possible false-positives).

Ideally I'd like to return a TStringList or even a comma-separated String containing the names of all required .bpl files.

3

There are 3 answers

2
Uwe Schuster On BEST ANSWER

For packages you can use the requires section of the PACKAGEINFO resource - see TJclPePackageInfo.

0
Daniel Santos On

GExperts' PE Information tool displays the list of bpls and dlls that are implicit loaded into any .exe, .dll or .bpl

0
Richard Turner On

I came across this from felix-cobri - its a little rough round the edges but does what I need and that is to list all the DLLS that my exe (or DLL) uses.

http://www.felix-colibri.com/papers/colibri_utilities/exe_dll_pe_explorer/exe_dll_pe_explorer.html

Good luck