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.

73 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1991-2002 Microsoft Corporation
  3. Module Name:
  4. savedump.h
  5. Abstract:
  6. This module contains the code to recover a dump from the system paging
  7. file.
  8. Environment:
  9. User mode.
  10. Revision History:
  11. --*/
  12. #ifndef _SAVEDUMP_H_
  13. #define _SAVEDUMP_H_
  14. #ifndef UNICODE
  15. #define UNICODE
  16. #endif
  17. #include <nt.h>
  18. #include <ntrtl.h>
  19. #include <nturtl.h>
  20. #include <stdio.h>
  21. #include <windows.h>
  22. #include <lmcons.h>
  23. #include <lmalert.h>
  24. #include <ntiodump.h>
  25. #include <strsafe.h>
  26. #include <sdevents.h>
  27. #include <alertmsg.h>
  28. #include <dbgeng.h>
  29. #include <faultrep.h>
  30. #include <erdirty.h>
  31. #include <erwatch.h>
  32. #define SUBKEY_CRASH_CONTROL L"SYSTEM\\CurrentControlSet\\Control\\CrashControl"
  33. #define SUBKEY_WATCHDOG_DISPLAY L"SYSTEM\\CurrentControlSet\\Control\\Watchdog\\Display"
  34. #define SUBKEY_RELIABILITY L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Reliability"
  35. #define LAST_HR() HRESULT_FROM_WIN32(GetLastError())
  36. extern DUMP_HEADER g_DumpHeader;
  37. extern WCHAR g_DumpBugCheckString[256];
  38. extern WCHAR g_MiniDumpFile[MAX_PATH];
  39. HRESULT
  40. FrrvToStatus(EFaultRepRetVal Frrv);
  41. HRESULT
  42. GetRegStr(HKEY Key,
  43. PWSTR Value,
  44. PWSTR Buffer,
  45. ULONG BufferChars,
  46. PWSTR Default);
  47. HRESULT
  48. GetRegWord32(HKEY Key,
  49. PWSTR Value,
  50. PULONG Word,
  51. ULONG Default,
  52. BOOL CanDefault);
  53. #endif // _SAVEDUMP_H_