Source code of Windows XP (NT5)
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.

81 lines
1.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1999
  5. //
  6. // File: PCH.cxx
  7. //
  8. // Contents: Pre-compiled header
  9. //
  10. // History: 21-Dec-92 BartoszM Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #ifndef REDKDEXT
  14. #define REDKDEXT
  15. //
  16. // allow this to compile at /W4
  17. //
  18. #pragma warning(disable:4115) // named type definition in parenthesis
  19. #pragma warning(disable:4200) // array[0]
  20. #pragma warning(disable:4201) // nameless struct/unions
  21. #pragma warning(disable:4214) // bit fields other than int
  22. #pragma warning(disable:4057) // char * == char[]
  23. #define KDEXTMODE
  24. #include <nt.h>
  25. #include <ntrtl.h>
  26. #include <nturtl.h>
  27. #include <windows.h>
  28. #include <ntosp.h>
  29. #include <zwapi.h>
  30. #include <stdlib.h>
  31. #include <stdio.h>
  32. #include <string.h>
  33. #include <imagehlp.h>
  34. #include <memory.h>
  35. // Stolen from ntrtl.h to override RECOMASSERT
  36. #ifdef ASSERT
  37. #undef ASSERT
  38. #endif
  39. #ifdef ASSERTMSG
  40. #undef ASSERTMSG
  41. #endif
  42. #if DBG
  43. #define ASSERT( exp ) \
  44. if (!(exp)) \
  45. RtlAssert( #exp, __FILE__, __LINE__, NULL )
  46. #define ASSERTMSG( msg, exp ) \
  47. if (!(exp)) \
  48. RtlAssert( #exp, __FILE__, __LINE__, msg )
  49. #else
  50. #define ASSERT( exp )
  51. #define ASSERTMSG( msg, exp )
  52. #endif // DBG
  53. #include <wdbgexts.h>
  54. extern WINDBG_EXTENSION_APIS ExtensionApis;
  55. #define OFFSET(struct, elem) ((char *) &(struct->elem) - (char *) struct)
  56. #define _DRIVER
  57. #define KDBG_EXT
  58. // grab the redbook related headers too
  59. #include <ntddredb.h>
  60. #include <redbook.h>
  61. #include "wmistr.h"
  62. #endif //REDKDEXT
  63. //#pragma hdrstop