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.

191 lines
3.3 KiB

  1. #if defined(SRVKD)
  2. #include <ntos.h>
  3. #include <ntlsa.h>
  4. #include <ntmsv1_0.h>
  5. #include <ntiolog.h>
  6. #include <ntiologc.h>
  7. #include <ntddnfs.h>
  8. #include <ntddser.h>
  9. #include <ntmsv1_0.h>
  10. #include <nturtl.h>
  11. #include <zwapi.h>
  12. #include <fsrtl.h>
  13. #else
  14. #include <ntifs.h>
  15. #include <ntddser.h>
  16. #endif
  17. // if you include persistent handle code, it's required that you also
  18. // add in the "IfModified" open code.
  19. #ifdef INCLUDE_SMB_PERSISTENT
  20. #define INCLUDE_SMB_IFMODIFIED
  21. #endif
  22. // header file for WMI event tracing
  23. //
  24. #define _NTDDK_
  25. #include "wmistr.h"
  26. #include "evntrace.h"
  27. #if !defined (SRVKD)
  28. #include "stdarg.h"
  29. #include "wmikm.h"
  30. #endif //#if !defined (SRVKD)
  31. #undef _NTDDK_
  32. #include <windef.h>
  33. #include <winerror.h>
  34. #include <netevent.h>
  35. #include <lm.h>
  36. #include <xactsrv2.h>
  37. #include <alertmsg.h>
  38. #include <msgtext.h>
  39. #include <tstr.h>
  40. #include <stdlib.h>
  41. #include <string.h>
  42. #include <wsnwlink.h>
  43. #include <tdi.h>
  44. #include <tdikrnl.h>
  45. #include <isnkrnl.h>
  46. #include <nbtioctl.h>
  47. #include <protocol.h>
  48. #include <lmcons.h>
  49. #ifndef SECURITY_KERNEL
  50. #define SECURITY_KERNEL
  51. #endif // SECURITY_KERNEL
  52. #ifndef SECURITY_NTLM
  53. #define SECURITY_NTLM
  54. #endif // SECURITY_NTLM
  55. #ifndef SECURITY_KERBEROS
  56. #define SECURITY_KERBEROS
  57. #endif // SECURITY_KERBEROS
  58. #include <security.h>
  59. #include <secint.h>
  60. // #define INCLUDE_SMB_CAIRO
  61. #define INCLUDE_SMB_ALL
  62. #include <smbtypes.h>
  63. #include <smbmacro.h>
  64. #include <smbgtpt.h>
  65. #include <smb.h>
  66. #include <smbtrans.h>
  67. #include <smbipx.h>
  68. //
  69. // Network include files.
  70. //
  71. #include <status.h>
  72. #define INCLUDE_SRV_IPX_SMART_CARD_INTERFACE 1
  73. #include <srvfsctl.h>
  74. //
  75. // Local, independent include files
  76. //
  77. //
  78. // Determine if we are building for a multiprocessor target
  79. //
  80. #if !defined( NT_UP ) || NT_UP == 0
  81. #define MULTIPROCESSOR 1
  82. #else
  83. #define MULTIPROCESSOR 0
  84. #endif
  85. #define DBG_STUCK 1
  86. #include "srvdebug.h"
  87. #if SRVDBG
  88. #define PAGED_DBG 1
  89. #endif
  90. #ifdef PAGED_DBG
  91. #undef PAGED_CODE
  92. #define PAGED_CODE() \
  93. struct { ULONG bogus; } ThisCodeCantBePaged; \
  94. ThisCodeCantBePaged; \
  95. if (KeGetCurrentIrql() > APC_LEVEL) { \
  96. DbgPrint( "EX: Pageable code called at IRQL %d\n", KeGetCurrentIrql() ); \
  97. ASSERT(FALSE); \
  98. DbgBreakPoint(); \
  99. }
  100. #define PAGED_CODE_CHECK() if (ThisCodeCantBePaged) ;
  101. extern ULONG ThisCodeCantBePaged;
  102. #else
  103. #undef PAGED_CODE
  104. #define PAGED_CODE()
  105. #define PAGED_CODE_CHECK()
  106. #endif
  107. #include "srvconst.h"
  108. #include "lock.h"
  109. #include <smbtrsup.h>
  110. #include "srvstrng.h"
  111. #include <md5.h>
  112. #include <crypt.h>
  113. //
  114. // The following include files are dependent on each other; be careful
  115. // when changing the order in which they appear.
  116. //
  117. #include "srvtypes.h"
  118. #include "srvblock.h"
  119. #if !defined( SRVKD )
  120. #include "srvfsp.h"
  121. #include "srvio.h"
  122. #include "srvfsd.h"
  123. #include "smbprocs.h"
  124. #include "smbctrl.h"
  125. #include "srvsvc.h"
  126. #include "srvdata.h"
  127. #include "srvnet.h"
  128. #include "srvstamp.h"
  129. #include "srvsupp.h"
  130. #include "srvmacro.h"
  131. #include "srvconfg.h"
  132. #include "errorlog.h"
  133. #include "rawmpx.h"
  134. #include "ipx.h"
  135. #include "srvsnap.h"
  136. #ifdef INCLUDE_SMB_PERSISTENT
  137. #include "persist.h"
  138. #endif
  139. #if DBG
  140. #undef ASSERT
  141. #define ASSERT( x ) \
  142. if( !(x) ) { \
  143. DbgPrint( "SRV: Assertion Failed at line %u in %s\n", __LINE__, __FILE__ ); \
  144. DbgBreakPoint(); \
  145. }
  146. #endif
  147. #if SLMDBG
  148. #undef ALLOC_PRAGMA
  149. #endif
  150. #endif