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.

121 lines
2.6 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: common.h
  4. //
  5. // Description:
  6. //
  7. //
  8. //@@BEGIN_MSINTERNAL
  9. // Development Team:
  10. // S.Mohanraj
  11. //
  12. // History: Date Author Comment
  13. //
  14. //@@END_MSINTERNAL
  15. //---------------------------------------------------------------------------
  16. //
  17. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  18. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  19. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  20. // PURPOSE.
  21. //
  22. // Copyright (c) 1996 Microsoft Corporation. All Rights Reserved.
  23. //
  24. //---------------------------------------------------------------------------
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #include <wdm.h>
  29. #include <windef.h>
  30. #include <winerror.h>
  31. #include <stdio.h>
  32. /*
  33. #include <memory.h>
  34. #include <stddef.h>
  35. #include <limits.h>
  36. #include <stdlib.h>
  37. #include <tchar.h>
  38. #include <conio.h>
  39. #define NOBITMAP
  40. #include <mmsystem.h>
  41. #include <mmreg.h>
  42. #undef NOBITMAP
  43. #include <ks.h>
  44. #include <ksmedia.h>
  45. #include <midi.h>
  46. */
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #if defined(UNDER_NT) && DBG
  51. #define DEBUG 1
  52. #endif
  53. #ifdef DEBUG
  54. #define Trap() {_asm {_emit 0xcc}}
  55. #else
  56. #define Trap()
  57. #endif
  58. #define WINICEDEBUGDUMP 1
  59. #ifdef DEBUG
  60. #if WINICEDEBUGDUMP
  61. #define QDBG ""
  62. #else
  63. #define QDBG "'"
  64. #endif
  65. extern int RtDebugLevel;
  66. /*
  67. * Generate debug output in printf type format.
  68. */
  69. #define dprintf( _x_ ) { DbgPrint(QDBG"RT: "); DbgPrint _x_ ; DbgPrint(QDBG"\r\n"); }
  70. #define dprintf1( _x_ ) if (RtDebugLevel >= 1) { DbgPrint(QDBG"RT: "); DbgPrint _x_ ; DbgPrint(QDBG"\r\n"); }
  71. #define dprintf2( _x_ ) if (RtDebugLevel >= 2) { DbgPrint(QDBG"RT: "); DbgPrint _x_ ; DbgPrint(QDBG"\r\n"); }
  72. #define dprintf3( _x_ ) if (RtDebugLevel >= 3) { DbgPrint(QDBG"RT: "); DbgPrint _x_ ; DbgPrint(QDBG"\r\n"); }
  73. #define dprintf4( _x_ ) if (RtDebugLevel >= 4) { DbgPrint(QDBG"RT: "); DbgPrint _x_ ; DbgPrint(QDBG"\r\n"); }
  74. #else
  75. #define dprintf(x)
  76. #define dprintf1(x)
  77. #define dprintf2(x)
  78. #define dprintf3(x)
  79. #define dprintf4(x)
  80. #endif // DEBUG
  81. //#include "private.h"
  82. //#include "sysaudio.h"
  83. #define INIT_CODE code_seg("INIT", "CODE")
  84. #define INIT_DATA data_seg("INIT", "DATA")
  85. #define LOCKED_CODE code_seg(".text", "CODE")
  86. #define LOCKED_DATA data_seg(".data", "DATA")
  87. #define PAGEABLE_CODE code_seg("PAGE", "CODE")
  88. #define PAGEABLE_DATA data_seg("PAGEDATA", "DATA")
  89. #pragma PAGEABLE_CODE
  90. #pragma PAGEABLE_DATA
  91. //---------------------------------------------------------------------------
  92. // End of File: common.h
  93. //---------------------------------------------------------------------------