查找dll的依赖模块 [英] Find dependent modules of dll
问题描述
我有自己的 custom.dll(C++、Windows)库,它依赖于:zlib.dll、iconv.dll 等.custom.dll 由 custom.exe 加载.
I have my own custom.dll (C++, Windows) library which depends on : zlib.dll, iconv.dll, etc. The custom.dll is loaded by custom.exe.
在 C++/WinAPI 中有没有办法在运行时找到 custom.dll 依赖的模块列表?
Is there way in C++/WinAPI to find list of modules custom.dll depends in runtime?
EnumProcessModules 函数适用于进程.
There is function EnumProcessModules which works for process.
有进程加载动态库的东西吗?作为示例,dependecy walker 实用程序、fileInfo 插件正确显示此信息.
Is there something for dynamic library loaded by process? As sample, the dependecy walker utility, fileInfo plugin display this information properly.
推荐答案
看看 Dependency walker.它完全符合您的要求.http://www.dependencywalker.com
Take a look at dependency walker. It does exactly what you're asking for. http://www.dependencywalker.com
这篇关于查找dll的依赖模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!