以编程方式读取dll依赖项。 [英] Programmatically reading dll dependencies.

查看:79
本文介绍了以编程方式读取dll依赖项。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在搜索,只能找几岁的文章。大多数人建议研究PE格式并使用win32函数来读取和解析它。有没有更好的办法?即更新的API或第三方库?我真的只想要一个函数
我给出一个exe或dll名称,它给了我一个dll依赖项的列表。

I have been searching and can only find articles a few years old. Most recommend to study the PE format and use the win32 functions to read and parse it. Is there a better way? i.e. a newer API or 3rd party library? I literally just want a function that I give an exe or dll name and it gives me a list of dll dependencies.

我需要能够为本机和.net dlls然而,似乎.net API已经支持运行时依赖性分析,因此这不是一个问题。

I need to be able to do this for native and .net dlls however it appears the .net API already supports runtime dependency analysis so that is less of an issue.

推荐答案

该程序已经被编写为了你。请参阅
Dependency Walker

That program has already been written for you. See Dependency Walker


这篇关于以编程方式读取dll依赖项。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆