gpt4 book ai didi

c++ - 如何找到使用 C++ 在注册表中注册的 DLL 的绝对路径?

转载 作者:太空宇宙 更新时间:2023-11-04 16:22:36 25 4
gpt4 key购买 nike

我正在尝试诊断某些可执行文件无法从启动时运行的情况。

首先,我想检查磁盘上是否存在 filename.exe(它没有被删除)。

我的输入是可执行文件的文件名及其 UUID。

问题:有了这些输入,我如何检查注册表是否已注册,如果已注册,可执行文件的路径是什么?

最佳答案

看起来你在找Dependency Walker :

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.

您可以从 http://www.dependencywalker.com/ 下载拷贝

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.

如果您在 Dependency Walker 中打开 .EXE 文件,您将看到所有相关模块 (DLL) 的分层树状图。缺少的 DLL 以红色显示(我想,自从我上次使用该工具已经有几年了)。

关于c++ - 如何找到使用 C++ 在注册表中注册的 DLL 的绝对路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15265837/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com