Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1992-2000 Microsoft Corporation
  3. Module Name:
  4. bugcheck.h
  5. Abstract:
  6. WinDbg Extension Api
  7. Environment:
  8. User Mode.
  9. Revision History:
  10. Kshitix K. Sharma (kksharma)
  11. bugcheck analyzer headers.
  12. --*/
  13. #ifndef _BUGCHECK_H_
  14. #define _BUGCHECK_H_
  15. #include "bugcodes.h"
  16. #include "extsfns.h"
  17. typedef struct _BUGCHECK_ANALYSIS
  18. {
  19. ULONG Code;
  20. ULONG64 Args[4];
  21. PCHAR szName;
  22. PCHAR szDescription;
  23. PCHAR szParamsDesc[4];
  24. } BUGCHECK_ANALYSIS, *PBUGCHECK_ANALYSIS;
  25. typedef void (WINAPI *PBUGCHECK_EXAMINE) (
  26. PBUGCHECK_ANALYSIS pBugCheck
  27. );
  28. typedef struct _BUGDESC_APIREFS {
  29. ULONG Code;
  30. PBUGCHECK_EXAMINE pExamineRoutine;
  31. } BUGDESC_APIREFS, *PBUGDESC_APIREFS;
  32. // why is this not defined in bugcodes.h ??
  33. #ifndef HEAP_INITIALIZATION_FAILED
  34. #define HEAP_INITIALIZATION_FAILED 0x5D
  35. #endif
  36. BOOL
  37. ReadUnicodeString(
  38. ULONG64 Address,
  39. PWCHAR Buffer,
  40. ULONG BufferSize,
  41. PULONG StringSize);
  42. BOOL
  43. BcGetDriverNameFromIrp(
  44. DebugFailureAnalysis* Analysis,
  45. ULONG64 Irp,
  46. ULONG64 DevObj,
  47. ULONG64 DrvObj
  48. );
  49. BOOL
  50. BcIsCpuOverClocked(
  51. void
  52. );
  53. KernelDebugFailureAnalysis*
  54. BcAnalyze(
  55. OUT PBUGCHECK_ANALYSIS Bc,
  56. ULONG Flags
  57. );
  58. HRESULT
  59. AnalyzeBugCheck(
  60. PCSTR args
  61. );
  62. #endif // _BUGCHECK_H