在 WinDbg 中定义自定义错误检查代码 [英] Define custom bugcheck codes in WinDbg

查看:47
本文介绍了在 WinDbg 中定义自定义错误检查代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法定义自定义代码(带有消息/描述等),以便在 Windows 的内核模式驱动程序中,我调用 KeBugCheckEx 来发出自定义错误检查代码 WinDbg显示自定义错误检查代码附带的相关消息?

Is there a way to define custom codes (with messages/descriptions and whatnot) so that when, in a kernel-mode driver in Windows, I call KeBugCheckEx to issue a custom BugCheck code, WinDbg displays the associated message that comes with that custom bugcheck code?

推荐答案

关于已知错误检查代码的文本被编译成扩展 DLL 之一.据我所知,这不是可以以任何简单方式扩展的东西(即您不能只是在某个地方向文件添加文本).

Text about the known bugcheck codes is compiled into one of the extension DLLs. This isn't something that's extensible in any kind of easy way as far as I know (i.e. you can't just add text to a file someplace).

这篇关于在 WinDbg 中定义自定义错误检查代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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