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.

152 lines
3.0 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-1999 Microsoft Corporation. All Rights Reserved.
  23. //
  24. //---------------------------------------------------------------------------
  25. #if DBG
  26. #ifndef DEBUG
  27. #define DEBUG
  28. #endif
  29. #define dprintf DbgPrint
  30. #endif
  31. #ifdef USE_ZONES
  32. #pragma message("USE_ZONES")
  33. #endif
  34. #ifdef DEBUG
  35. #pragma message("DEBUG")
  36. #endif
  37. #if DBG
  38. #pragma message("DBG")
  39. #endif
  40. #include <wchar.h>
  41. extern "C" {
  42. #ifdef USE_ZONES
  43. #include <ntddk.h>
  44. #else
  45. #include <wdm.h>
  46. #endif
  47. #include <windef.h>
  48. #include <winerror.h>
  49. #include <memory.h>
  50. #include <stddef.h>
  51. #include <stdio.h>
  52. #include <limits.h>
  53. #include <stdlib.h>
  54. #include <tchar.h>
  55. #include <conio.h>
  56. #include <string.h>
  57. #define NOBITMAP
  58. #include <mmsystem.h>
  59. #include <mmreg.h>
  60. #undef NOBITMAP
  61. #include <ks.h>
  62. #include <ksmediap.h>
  63. #include <wdmguid.h>
  64. #include <swenum.h>
  65. } // extern "C"
  66. #include "debug.h"
  67. #include "cobj.h"
  68. #include "clist.h"
  69. #include "util.h"
  70. #include "validate.h"
  71. #include "cinstanc.h"
  72. #include "device.h"
  73. #include "pins.h"
  74. #include "filter.h"
  75. #include "property.h"
  76. #include "registry.h"
  77. #include "tc.h"
  78. #include "tp.h"
  79. #include "tn.h"
  80. #include "pn.h"
  81. #include "pi.h"
  82. #include "fni.h"
  83. #include "lfn.h"
  84. #include "gpi.h"
  85. #include "ci.h"
  86. #include "si.h"
  87. #include "cn.h"
  88. #include "sn.h"
  89. #include "pni.h"
  90. #include "cni.h"
  91. #include "sni.h"
  92. #include "gni.h"
  93. #include "gn.h"
  94. #include "shi.h"
  95. #include "fn.h"
  96. #if defined(_M_IA64)
  97. #pragma section("DATA")
  98. #define ALLOC_PAGEABLE_DATA __declspec(allocate("DATA"))
  99. #else
  100. #define ALLOC_PAGEABLE_DATA
  101. #endif
  102. #include "dn.h"
  103. #include "vsl.h"
  104. #include "vnd.h"
  105. #include "vsd.h"
  106. #include "notify.h"
  107. #include "topology.h"
  108. #include "virtual.h"
  109. //---------------------------------------------------------------------------
  110. #define INIT_CODE code_seg("INIT", "CODE")
  111. #define INIT_DATA data_seg("INITDATA", "DATA")
  112. #define LOCKED_CODE code_seg(".text", "CODE")
  113. #define LOCKED_DATA data_seg(".data", "DATA")
  114. #define LOCKED_BSS bss_seg(".data", "DATA")
  115. #define PAGEABLE_CODE code_seg("PAGE", "CODE")
  116. #define PAGEABLE_DATA data_seg("PAGEDATA", "DATA")
  117. #define PAGEABLE_BSS bss_seg("PAGEDATA", "DATA")
  118. #if !defined(USE_ALLOC_TEXT)
  119. #pragma PAGEABLE_CODE
  120. #pragma PAGEABLE_DATA
  121. #endif
  122. //---------------------------------------------------------------------------
  123. // End of File: common.h
  124. //---------------------------------------------------------------------------