How do I detect the DLLs required by an application?

后端 未结 7 982
一生所求
一生所求 2020-11-30 11:40

In a nutshell: I want to do the same thing \"Dependency Walker\" does.

Is there any Win32 API function which can enumerate the dependencies of a EXE and/or DLL file?

7条回答
  •  臣服心动
    2020-11-30 12:17

    User @blue... eluded to Dependency Walker. When using Dependency Walker, after opening the file you can see the base requirements that are used. Only when executing the program and exercising all of its functions can you find all of the dynamically-loaded DLLs.

    Sometimes the best thing to do if you can is ask the developer what DLLs are required. An application may only load some DLLs when absolutely needed. e.g. Loading faultrep.dll, for custom Windows Error Reporting, when it is about to crash.

提交回复
热议问题