Alex Rivera | Logout

How to determine a windows executables DLL dependencies programmatically?

Asked 2009-02-28T01:06:08.270
12

How to determine what DLL's a binary depends on using programmatic methods?

To be clear, I am not trying to determine the DLL dependencies of the running exec, but of any arbitrary exec (that may be missing a required DLL). I'm looking for a solution to implement in a C/C++ application. This is something that needs to be done by my application at runtime and can't be done by a third party app (like depends).

Edit
Report

1 Answer

1

Dependency Walker can do this by using the profile menu, if you have a target executable. Simply load the executable, tell it to start profiling, and it'll list all the modules loaded while executing the program.

Dependency Walker FAQ (first question...)

answered 2012-05-08T18:24:38.887

Your Answer