首页 > 技术文章 > WinDbg常用命令系列---错误消息显示!error

yilang 2019-09-23 20:52 原文

!error

这个!error扩展命令解码并显示有关错误值的信息。

!error Value [Flags]

参数:

  • Value
    指定以下错误代码之一:Win32、Winsock、NTSTATUS、NetAPI
  • Flags
    如果标志设置为1,则错误代码将作为ntstatus代码读取。

DLL

Windows 2000

Ext.dll

Windows XP 及更高版本

Ext.dll

下面的示例演示如何使用!错误。

0:000> !error 2
Error code: (Win32) 0x2 (2) - The system cannot find the file specified.
0:000> !error 2 1
Error code: (NTSTATUS) 0x2 - STATUS_WAIT_2

推荐阅读