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.

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