Windows平台如何查看一个dll依赖的其他dll

好多开发者在做windows开发的时候,容易遇到dll依赖的问题,VS自带一个小工具dumpbin, 这个工具挺好用,可以查看dll相关依赖库,还可以看dll导出接口。

下面演示下查依赖库用法:

运行 dumpbin /dependents nm.exe

输出:

Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Dump of file nm.exe


File Type: EXECUTABLE IMAGE
Image has the following dependencies:


KERNEL32.dll
msvcrt.dll
USER32.dll


Summary


1000 .CRT
6000 .bss
6000 .data
2000 .idata
6000 .pdata
3A000 .rdata
BA000 .text
1000 .tls
6000 .xdata


是不是非常简单?

posted @ 2021-05-18 15:33  音视频牛哥  阅读(0)  评论(0)    收藏  举报  来源