| Debugging Tools for Windows | 
The ReadBugCheckData method reads the kernel bug check code and related parameters.
HRESULT
  IDebugControl::ReadBugCheck(
    OUT PULONG  Code,
    OUT PULONG64  Arg1,
    OUT PULONG64  Arg2,
    OUT PULONG64  Arg3,
    OUT PULONG64  Arg4
    );
This method can also return error values. See Return Values for more details.
ReadBugCheck is available in all versions of IDebugControl.
This method is only available in kernel-mode debugging.
For more information about bug checks, including a list of bug check codes and their interpretations, see Bug Checks (Blue Screens).
Headers: Defined in Dbgeng.h. Include Dbgeng.h.