dbgeng - 在 c++ 中加载扩展 dll?
我编写了一个应用程序,在其中使用 dbgeng.dll 加载一个系统范围的故障转储。我想使用一些 WinDbg 命令,例如 (!vad) - 为此,我需要其他 dll,例如 exts.dll、ext.dll、kext.dll、kexts.dll。我拥有所有这些 dll,并且正确设置了 _NT_DEBUGGER_EXTENSION_PATH。当我使用 WinDbg GUI 时,.chain 命令告诉我所有这些 dll 都已加载,但是当我尝试从代码中执行此操作时,我看不到这些 dll 已加载。另外,当我尝试使用 Execute (.load....) 加载这些 dll 时,它会抛出错误 - “对 LoadLibrary('...') 的调用失败,Win32 错误 0n193”。我也尝试过 !load - 它们都在我的代码中不起作用。但在 GUI 中一切都运行得很好。我无法弄清楚如何在我的 C++ 代码中加载所有这些 dll。
有人可以帮我吗? 我非常感谢您的帮助!
-arb
I have written one application in which I load one system wide crash dump using dbgeng.dll. I want to use some of the WinDbg commands like (!vad) - for that I need other dll's like exts.dll, ext.dll, kext.dll, kexts.dll. I have all these dlls and have my _NT_DEBUGGER_EXTENSION_PATH properly set. When I use the WinDbg GUI - .chain command tells me that all these dlls are loaded but when I try to do it from my code - I can't see these dlls loaded. Also when I try to load these dlls using Execute (.load....) - it throws an error - " The call to LoadLibrary('...') failed, Win32 error 0n193". I tried !load as well - both of them didn't work in my code. But everything works perfectly in GUI. I am not able to figure out how to load all these dlls in my c++ code.
Could anybody please help me out here ?
I would really appreciate your help!
-arb
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误 193 如果您收到错误 193,通常意味着您正在尝试在 32 位应用程序中加载 64 位 dll(反之亦然)。
确保从 Windbg 安装的同一目录加载 dbgeng.dll。然后,您将能够通过
IDebugControl::Execute
使用所有 Windbg 命令Error 193 If you get error 193 usually means that you are trying to load 64-bit dll in a 32-bit application (or vice versa).
Make sure that you load dbgeng.dll from the same directory windbg is installed to. You will then be able to use all windbg commands via
IDebugControl::Execute