windows下模块分析软件——Dependency Walker

Linux系统下我们可以借助file, readelf 等命令来查看ELF文件的格式(32位或64位)及依赖(依赖的模块)。

那么windows下面有没有类似的工具?答案是肯定的,Dependency Walker就是这样一个软件,可以在http://www.dependencywalker.com查看该软件的说明及下载该软件。其UI如下:


我是在运行python程序时遇到了“cannot find xxx dll”错误时,添加了该dll的路径后,程序又出现“xxx dll is no a valid win32 Applicant”。

运行Dependency Walker查看下该dll,确认该dll文件位32位程序,没法用于x64系统上(原因位系统安装的是x64的JDK)。

最后通过讲系统的JDK装回x86格式后,问题得到解决。所以向大家推荐下该软件。


Dependency Walker 可以自由查看任何32位 或 64位 Windows 程序模块的内部层次依赖关系与结构关系 (包括exe, dll, ocx, sys, 等文件),并通过树状图示的方式显示。 本资源为32位系统支持,其他位宽程序请查看下面官网下载 http://www.dependencywalker.com/ (以下不做翻译) For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules. Another view displays the minimum set of required files, along with detailed information about each file including a full path to the file, base address, version numbers, machine type, debug information, and more. Dependency Walker is also very useful for troubleshooting system errors related to loading and executing modules. Dependency Walker detects many common application problems such as missing modules, invalid modules, import/export mismatches, circular dependency errors, mismatched machine types of modules, and module initialization failures. Dependency Walker runs on Windows 95, 98, Me, NT, 2000, XP, 2003, Vista, 7, and 8. It can process any 32-bit or 64-bit Windows module, including ones designed for Windows CE. It can be run as graphical application or as a console application. Dependency Walker handles all types of module dependencies, including implicit, explicit (dynamic / runtime), forwarded, delay-loaded, and injected. A detailed help is included. Dependency Walker is completely free to use. However, you may not profit from the distribution of it, nor may you bundle it with another product.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值