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.

260 lines
9.8 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. mupwml.h
  5. Abstract:
  6. This file defines macro for use by the Rdbss driver
  7. Author:
  8. yunlin
  9. Revision History:
  10. --*/
  11. #ifndef __SMB_SMBWML_H__
  12. #define __SMB_SMBWML_H__
  13. typedef struct _RTL_TIME_ZONE_INFORMATION {
  14. LONG Bias;
  15. WCHAR StandardName[ 32 ];
  16. TIME_FIELDS StandardStart;
  17. LONG StandardBias;
  18. WCHAR DaylightName[ 32 ];
  19. TIME_FIELDS DaylightStart;
  20. LONG DaylightBias;
  21. } RTL_TIME_ZONE_INFORMATION, *PRTL_TIME_ZONE_INFORMATION;
  22. #ifndef _WMIKM_
  23. #define _WMIKM_
  24. #endif
  25. #include "..\..\wmi\wmlkm.h"
  26. #include "..\..\wmi\wmlmacro.h"
  27. // Streams
  28. #define _SMB_TRACE_STREAM 0x00
  29. #define _SMB_PERF_STREAM 0x01
  30. #define _SMB_INSTR_STREAM 0x02
  31. #define _SMB_ENABLE_ERROR 0x0001
  32. #define _SMB_ENABLE_LOG 0x0002
  33. #define _SMB_ENABLE_TRACE 0x0004
  34. #define _SMB_ENABLE_SERVER 0x0008
  35. #define _SMB_ENABLE_NETROOT 0x0010
  36. #define _SMB_ENABLE_VNETROOT 0x0020
  37. #define _SMB_ENABLE_FCB 0x0040
  38. #define _SMB_ENABLE_SRVOPEN 0x0080
  39. #define _SMB_ENABLE_FOBX 0x0100
  40. #define _SMB_ENABLE_TRANSPORT 0x0200
  41. #define _SMB_ENABLE_RXCONTEXT 0x0400
  42. #define _SMB_ENABLE_SESSION 0x0800
  43. #define _SMB_ENABLE_SECURITY 0x1000
  44. #define _SMB_ENABLE_EXCHANGE 0x2000
  45. #define _SMB_ENABLE_UNUSED2 0x4000
  46. #define _SMB_ENABLE_UNUSED1 0x8000
  47. #define _SMB_LEVEL_DETAIL 0x1
  48. #define _SMB_LEVEL_NORM 0x2
  49. #define _SMB_LEVEL_BRIEF 0x4
  50. #define SMB_LOG_STREAM(_stream) _SMB_ ## _stream ## _STREAM
  51. #define SMB_LOG_FLAGS(_flag) _SMB_ENABLE_ ## _flag
  52. #define SMB_LOG_LEVEL(_level) _SMB_LEVEL_ ## _level
  53. #define SMB_LOG(_why, _level, _flag, _type, _arg) \
  54. WML_LOG(MRxSmb_, SMB_LOG_STREAM(_why), SMB_LOG_LEVEL(_level), _flag, _type, _arg 0)
  55. #define LOGARG(_val) (_val),
  56. #define LOGNOTHING 0,
  57. #define SmbTrace(_flag, _type, _arg) \
  58. SMB_LOG(TRACE, DETAIL, SMB_LOG_FLAGS(_flag), _type, _arg)
  59. #define SmbLog(_flag, _type, _arg) \
  60. SMB_LOG(TRACE, BRIEF, SMB_LOG_FLAGS(_flag), _type, _arg)
  61. #define SmbTraceError(_status, _flag, _type, _arg) \
  62. SMB_LOG(TRACE, DETAIL, (SMB_LOG_FLAGS(_flag) | (NT_SUCCESS(_status) ? 0 : SMB_LOG_FLAGS(ERROR))), _type, _arg)
  63. #define SmbLogError(_status, _flag, _type, _arg) \
  64. SMB_LOG(TRACE, BRIEF, (SMB_LOG_FLAGS(_flag) | (NT_SUCCESS(_status) ? 0 : SMB_LOG_FLAGS(ERROR))), _type, _arg)
  65. #if 0
  66. #define SMB_PERF(_flag, _type, _arg) \
  67. SMB_LOG (PERF, HIGH, SMB_LOG_FLAGS(_flag), _type, _arg)
  68. #define SMB_INSTR(_flag, _type, _arg) \
  69. SMB_LOG (INSTR, HIGH, SMB_LOG_FLAGS(_flag), _type, _arg)
  70. #define SMB_PRINTF(_why, _flag, _type, _fmtstr, _arg) \
  71. WML_PRINTF(_MupDrv, SMB_LOG_STREAM(_why), SMB_LOG_FLAGS(_flag), _type, _fmtstr, _arg 0)
  72. #define SMB_DBG_PRINT(_flag, _fmtstr, _arg) \
  73. SMB_PRINTF(DBGLOG, _flag, MupDefault, _fmtstr, _arg)
  74. #define SMB_ERR_PRINT (_status, _fmtstr, _arg) \
  75. if (NT_SUCCESS(_status)) { \
  76. SMB_PRINTF (DBGLOG, LOG_ERROR, MupDefault, _fmtstr, _arg) \
  77. }
  78. #endif
  79. enum SMB_WMI_ENUM {
  80. MSG_ID_SmbDefault = 1,
  81. MSG_ID_MRxSmbFsdDispatch_Entry = 2,
  82. MSG_ID_MRxSmbRefServerEntry,
  83. MSG_ID_MRxSmbRefNetRootEntry,
  84. MSG_ID_MRxSmbRefSessionEntry = 5,
  85. MSG_ID_MRxSmbRefVNetRootContext,
  86. MSG_ID_MRxSmbDerefServerEntry,
  87. MSG_ID_MRxSmbDerefNetRootEntry,
  88. MSG_ID_MRxSmbDerefSessionEntry,
  89. MSG_ID_MRxSmbDerefVNetRootContext = 10,
  90. MSG_ID_MRxSmbCreate,
  91. MSG_ID_SmbPseExchangeStart_CoreInfo,
  92. MSG_ID_MRxSmbExtendForCache,
  93. MSG_ID_MRxSmbCoreDeleteForSupercedeOrClose,
  94. MSG_ID_MRxSmbAllocateSideBuffer = 15,
  95. MSG_ID_MRxSmbDeallocateSideBuffer,
  96. MSG_ID_MrxSmbUnalignedDirEntryCopyTail,
  97. MSG_ID_MRxSmbQueryDirectory,
  98. MSG_ID_SmbCeGetConfigurationInformation,
  99. MSG_ID_UninitializeMidMap = 20,
  100. MSG_ID_MRxSmbDeferredCreate_1,
  101. MSG_ID_MRxSmbDeferredCreate_2,
  102. MSG_ID_SmbPseExchangeStart_Read,
  103. MSG_ID_BuildNtLanmanResponsePrologue,
  104. MSG_ID_BuildExtendedSessionSetupResponsePrologue = 25,
  105. MSG_ID_ValidateServerExtendedSessionSetupResponse,
  106. MSG_ID_BuildExtendedSessionSetupResponsePrologueFake,
  107. MSG_ID_SmbCeProbeServers,
  108. MSG_ID_SmbCeTransportDisconnectIndicated,
  109. MSG_ID_SmbCeResumeAllOutstandingRequestsOnError = 30,
  110. MSG_ID_SmbCeFinalizeAllExchangesForNetRoot,
  111. MSG_ID_SmbCeReceiveInd,
  112. MSG_ID_SmbCeReceiveIndWithSecuritySignature,
  113. MSG_ID_SmbCeDataReadyIndWithSecuritySignature,
  114. MSG_ID_SmbCeParseSmbHeader = 35,
  115. MSG_ID_SmbCeDetectExpiredExchanges,
  116. MSG_ID_RxMiniSniffer,
  117. MSG_ID_SmbCeReceiveInd_2,
  118. MSG_ID_SmbCeReceiveInd_3,
  119. MSG_ID_SmbCeErrorInd = 40,
  120. MSG_ID_MRxSmbSetInitialSMB,
  121. MSG_ID_SmbTransactExchangeReceive_1,
  122. MSG_ID_SmbTransactExchangeReceive_2,
  123. MSG_ID_SmbTransactExchangeReceive_3,
  124. MSG_ID_SmbTransactExchangeReceive_4 = 45,
  125. MSG_ID_SmbTransactExchangeReceive_5,
  126. MSG_ID_SmbTransactExchangeFinalize,
  127. MSG_ID_SendSecondaryRequests,
  128. MSG_ID_SmbExtSecuritySessionSetupExchangeStart,
  129. MSG_ID_MRxSmbCreateVNetRoot = 50,
  130. MSG_ID_SmbConstructNetRootExchangeFinalize,
  131. MSG_ID_MRxSmbInitializeRecurrentServices,
  132. MSG_ID_UninitializeSecurityContextsForSession,
  133. MSG_ID_DeleteSecurityContextForSession,
  134. MSG_ID_SmbCeFindOrConstructServerEntry_1 = 55,
  135. MSG_ID_SmbCeFindOrConstructServerEntry_2,
  136. MSG_ID_SmbCeTearDownServerEntry,
  137. MSG_ID_SmbCeFindOrConstructSessionEntry_1,
  138. MSG_ID_SmbCeFindOrConstructSessionEntry_2,
  139. MSG_ID_SmbCeTearDownSessionEntry = 60,
  140. MSG_ID_SmbCeFindOrConstructNetRootEntry_1,
  141. MSG_ID_SmbCeFindOrConstructNetRootEntry_2,
  142. MSG_ID_SmbCeTearDownNetRootEntry,
  143. MSG_ID_SmbCeCancelExchange_1,
  144. MSG_ID_SmbCeCancelExchange_2 = 65,
  145. MSG_ID_SmbCeFindVNetRootContext,
  146. MSG_ID_SmbCeFindOrConstructVNetRootContext_1,
  147. MSG_ID_SmbCeFindOrConstructVNetRootContext_2,
  148. MSG_ID_SmbCepDereferenceVNetRootContext,
  149. MSG_ID_SmbCeTearDownVNetRootContext = 70,
  150. MSG_ID_SmbCeScavengeRelatedContexts,
  151. MSG_ID_MRxSmbWrite,
  152. MSG_ID_CscPrepareServerEntryForOnlineOperation_1,
  153. MSG_ID_CscPrepareServerEntryForOnlineOperation_2,
  154. MSG_ID_CscPrepareServerEntryForOnlineOperation_3 = 75,
  155. MSG_ID_CscTransitionServerToOnline_1,
  156. MSG_ID_CscTransitionServerToOnline_2,
  157. MSG_ID_CscTransitionServerToOnline_3,
  158. MSG_ID_CscpTransitionServerEntryForDisconnectedOperation_1,
  159. MSG_ID_CscpTransitionServerEntryForDisconnectedOperation_2 = 80,
  160. MSG_ID_CscpTransitionServerEntryForDisconnectedOperation_3,
  161. MSG_ID_CscpTransitionServerEntryForDisconnectedOperation_4,
  162. MSG_ID_CscpTransitionServerEntryForDisconnectedOperation_5,
  163. MSG_ID_CscpTransitionServerEntryForDisconnectedOperation_6,
  164. MSG_ID_CscpTransitionServerEntryForDisconnectedOperation_7 = 85,
  165. MSG_ID_CscIsThisDfsCreateOperationTransitionableForDisconnectedOperation_1,
  166. MSG_ID_CscIsThisDfsCreateOperationTransitionableForDisconnectedOperation_2,
  167. MSG_ID_CscIsThisDfsCreateOperationTransitionableForDisconnectedOperation_3,
  168. MSG_ID_CscIsThisDfsCreateOperationTransitionableForDisconnectedOperation_4,
  169. MSG_ID_CscIsThisDfsCreateOperationTransitionableForDisconnectedOperation_5 = 90,
  170. MSG_ID_CscTransitionVNetRootForDisconnectedOperation_1,
  171. MSG_ID_CscTransitionVNetRootForDisconnectedOperation_2,
  172. MSG_ID_CscTransitionVNetRootForDisconnectedOperation_3,
  173. MSG_ID_CscTransitionServerEntryForDisconnectedOperation_1,
  174. MSG_ID_CscTransitionServerEntryForDisconnectedOperation_2 = 95,
  175. MSG_ID_CscTransitionServerEntryForDisconnectedOperation_3,
  176. MSG_ID_MRxSmbCscNotifyChangeDirectory,
  177. MSG_ID_MRxSmbCscCleanupFobx,
  178. MSG_ID_FCleanupAllNotifyees,
  179. MSG_ID_BuildNtLanmanResponsePrologue_1 = 100,
  180. MSG_ID_BuildNtLanmanResponsePrologue_2,
  181. MSG_ID_BuildNtLanmanResponsePrologue_3,
  182. MSG_ID_BuildExtendedSessionSetupResponsePrologue_1,
  183. MSG_ID_BuildExtendedSessionSetupResponsePrologue_2,
  184. MSG_ID_BuildExtendedSessionSetupResponsePrologue_3 = 105,
  185. MSG_ID_ValidateServerExtendedSessionSetupResponse_1,
  186. MSG_ID_ValidateServerExtendedSessionSetupResponse_2,
  187. MSG_ID_BuildExtendedSessionSetupResponsePrologueFake_1,
  188. MSG_ID_BuildExtendedSessionSetupResponsePrologueFake_2,
  189. MSG_ID_BuildExtendedSessionSetupResponsePrologueFake_3 = 110,
  190. MSG_ID_BuildExtendedSessionSetupResponsePrologueFake_4,
  191. MSG_ID_MRxSmbpBindTransportCallback_1,
  192. MSG_ID_MRxSmbpBindTransportCallback_2,
  193. MSG_ID_SmbExtSecuritySessionSetupExchangeCopyDataHandler,
  194. MSG_ID_VctpCreateConnectionCallback = 115,
  195. MSG_ID_BuildSessionSetupSecurityInformation,
  196. // begin FullDirCache WMI Messages
  197. MSG_ID_MRxSmbFailingFNext,
  198. MSG_ID_MRxSmbFullDirCacheSetup,
  199. MSG_ID_MRxSmbFullDirCacheElse,
  200. MSG_ID_MRxSmbFFNonConforming = 120,
  201. MSG_ID_MRxSmbPickingUpFNext,
  202. MSG_ID_MRxSmbResettingFNext,
  203. MSG_ID_MRxSmbAttemptingCache,
  204. MSG_ID_MRxSmbCheckFNOTFFromSFI,
  205. MSG_ID_MRxSmbQPINFSaved = 125,
  206. MSG_ID_MRxSmbQueryBasicInfoSaved,
  207. MSG_ID_MRxSmbTrounceSetFileInfo,
  208. MSG_ID_MRxSmbTrounceCreate,
  209. MSG_ID_MRxSmbServerOpenSaved,
  210. MSG_ID_MRxSmbTrounceSentDispose = 130,
  211. MSG_ID_MRxSmbReactivatingCache,
  212. MSG_ID_MRxSmbCached,
  213. MSG_ID_MRxSmbCachedFullDir,
  214. MSG_ID_MRxSmbInvalidateFullDir,
  215. MSG_ID_MRxSmbFoundInFDC = 135,
  216. MSG_ID_MRxSmbInvParentCache,
  217. MSG_ID_MRxSmbExpireCache,
  218. MSG_ID_MRxSmbInvalidateRenameParentCache,
  219. MSG_ID_MRxSmbFoundInFDC2,
  220. MSG_ID_MRxSmbCacheBlown = 140,
  221. MSG_ID_MRxSmbInvalidateFullDirCacheFromEa
  222. // end FullDirCache WMI Messages
  223. };
  224. #define WML_ID(_id) ((MSG_ID_ ## _id) & 0xFF)
  225. #define WML_GUID(_id) ((MSG_ID_ ## _id) >> 8)
  226. extern WML_CONTROL_GUID_REG MRxSmb_ControlGuids[];
  227. #endif /* __SMB_SMBWML_H__ */