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.

342 lines
12 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 __RX_RXWML_H__
  12. #define __RX_RXWML_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. #define _RX_TRACE_STREAM 0x00
  28. #define _RX_PERF_STREAM 0x01
  29. #define _RX_INSTR_STREAM 0x02
  30. #define _RX_ENABLE_ERROR 0x0001
  31. #define _RX_ENABLE_LOG 0x0002
  32. #define _RX_ENABLE_TRACE 0x0004
  33. #define _RX_ENABLE_SRVCALL 0x0008
  34. #define _RX_ENABLE_NETROOT 0x0010
  35. #define _RX_ENABLE_VNETROOT 0x0020
  36. #define _RX_ENABLE_FCB 0x0040
  37. #define _RX_ENABLE_SRVOPEN 0x0080
  38. #define _RX_ENABLE_FOBX 0x0100
  39. #define _RX_ENABLE_TRANSPORT 0x0200
  40. #define _RX_ENABLE_RXCONTEXT 0x0400
  41. #define _RX_ENABLE_UNUSED1 0x0800
  42. #define _RX_ENABLE_UNUSED2 0x1000
  43. #define _RX_ENABLE_UNUSED3 0x2000
  44. #define _RX_ENABLE_UNUSED4 0x4000
  45. #define _RX_ENABLE_PAGEIORES 0x8000
  46. #define _RX_LEVEL_DETAIL 0x1
  47. #define _RX_LEVEL_NORM 0x2
  48. #define _RX_LEVEL_BRIEF 0x4
  49. #define RX_LOG_STREAM(_stream) _RX_ ## _stream ## _STREAM
  50. #define RX_LOG_FLAGS(_flag) _RX_ENABLE_ ## _flag
  51. #define RX_LOG_LEVEL(_level) _RX_LEVEL_ ## _level
  52. #define RX_LOG(_why, _level, _flag, _type, _arg) \
  53. WML_LOG(Rdbss_, RX_LOG_STREAM(_why), RX_LOG_LEVEL(_level), _flag, _type, _arg 0)
  54. #define LOGARG(_val) (_val),
  55. #define LOGNOTHING 0,
  56. #define RxWmiTrace(_flag, _type, _arg) \
  57. RX_LOG(TRACE, DETAIL, RX_LOG_FLAGS(_flag), _type, _arg)
  58. #define RxWmiLog(_flag, _type, _arg) \
  59. RX_LOG(TRACE, BRIEF, RX_LOG_FLAGS(_flag), _type, _arg)
  60. #define RxWmiTraceError(_status, _flag, _type, _arg) \
  61. RX_LOG(TRACE, DETAIL, (RX_LOG_FLAGS(_flag) | (NT_SUCCESS(_status) ? 0 : RX_LOG_FLAGS(ERROR))), _type, _arg)
  62. #define RxWmiLogError(_status, _flag, _type, _arg) \
  63. RX_LOG(TRACE, BRIEF, (RX_LOG_FLAGS(_flag) | (NT_SUCCESS(_status) ? 0 : RX_LOG_FLAGS(ERROR))), _type, _arg)
  64. #if 0
  65. #define RX_PERF(_flag, _type, _arg) \
  66. RX_LOG (PERF, HIGH, RX_LOG_FLAGS(_flag), _type, _arg)
  67. #define RX_INSTR(_flag, _type, _arg) \
  68. RX_LOG (INSTR, HIGH, RX_LOG_FLAGS(_flag), _type, _arg)
  69. #define RX_PRINTF(_why, _flag, _type, _fmtstr, _arg) \
  70. WML_PRINTF(_MupDrv, RX_LOG_STREAM(_why), RX_LOG_FLAGS(_flag), _type, _fmtstr, _arg 0)
  71. #define RX_DBG_PRINT(_flag, _fmtstr, _arg) \
  72. RX_PRINTF(DBGLOG, _flag, MupDefault, _fmtstr, _arg)
  73. #define RX_ERR_PRINT (_status, _fmtstr, _arg) \
  74. if (NT_SUCCESS(_status)) { \
  75. RX_PRINTF (DBGLOG, LOG_ERROR, MupDefault, _fmtstr, _arg) \
  76. }
  77. #endif
  78. typedef enum _RX_WMI_ENUM_ {
  79. MSG_ID_RxDefault = 1,
  80. MSG_ID_RxCommonDispatchProblem,
  81. MSG_ID_RxFsdCommonDispatch_OF,
  82. MSG_ID_RxInitializeContext,
  83. MSG_ID_RxCompleteRequest = 5,
  84. MSG_ID_RxCompleteRequest_NI,
  85. MSG_ID_RxSynchronizeBlockingOperationsMaybeDroppingFcbLock,
  86. MSG_ID_RxItsTheSameContext,
  87. MSG_ID_RxRegisterChangeBufferingStateRequest_1,
  88. MSG_ID_RxRegisterChangeBufferingStateRequest_2 = 10,
  89. MSG_ID_RxRegisterChangeBufferingStateRequest_3,
  90. MSG_ID_RxPrepareRequestForHandling_1,
  91. MSG_ID_RxPrepareRequestForHandling_2,
  92. MSG_ID_RxpDiscardChangeBufferingStateRequests,
  93. MSG_ID_RxpDispatchChangeBufferingStateRequests = 15,
  94. MSG_ID_RxpProcessChangeBufferingStateRequests_1,
  95. MSG_ID_RxpProcessChangeBufferingStateRequests_2,
  96. MSG_ID_RxpProcessChangeBufferingStateRequests_3,
  97. MSG_ID_RxpProcessChangeBufferingStateRequests_4,
  98. MSG_ID_RxpProcessChangeBufferingStateRequests_5 = 20,
  99. MSG_ID_RxLastChanceHandlerForChangeBufferingStateRequests_1,
  100. MSG_ID_RxLastChanceHandlerForChangeBufferingStateRequests_2,
  101. MSG_ID_RxLastChanceHandlerForChangeBufferingStateRequests_3,
  102. MSG_ID_RxProcessFcbChangeBufferingStateRequest_1,
  103. MSG_ID_RxProcessFcbChangeBufferingStateRequest_2 = 25,
  104. MSG_ID_RxProcessFcbChangeBufferingStateRequest_3,
  105. MSG_ID_RxProcessFcbChangeBufferingStateRequest_4,
  106. MSG_ID_RxChangeBufferingState_1,
  107. MSG_ID_RxChangeBufferingState_2,
  108. MSG_ID_RxChangeBufferingState_3 = 30,
  109. MSG_ID_RxChangeBufferingState_4,
  110. MSG_ID_RxChangeBufferingState_5,
  111. MSG_ID_RxFlushFcbInSystemCache,
  112. MSG_ID_RxPurgeFcbInSystemCache,
  113. MSG_ID_RxCopyCreateParameters_1 = 35,
  114. MSG_ID_RxCopyCreateParameters_2,
  115. MSG_ID_RxFindOrCreateFcb,
  116. MSG_ID_RxSearchForCollapsibleOpen,
  117. MSG_ID_RxCollapseOrCreateSrvOpen,
  118. MSG_ID_RxCommonCreate_1 = 40,
  119. MSG_ID_RxCommonCreate_2,
  120. MSG_ID_RxCommonCreate_3,
  121. MSG_ID_RxCommonCreate_4,
  122. MSG_ID_RxCommonCreate_5,
  123. MSG_ID_RxCommonClose_1 = 45,
  124. MSG_ID_RxCommonClose_2,
  125. MSG_ID_RxCloseAssociatedSrvOpen,
  126. MSG_ID_RxpCancelRoutine,
  127. MSG_ID_RxCancelNotifyChangeDirectoryRequestsForVNetRoot,
  128. MSG_ID_RxCancelNotifyChangeDirectoryRequestsForFobx = 50,
  129. MSG_ID_RxCommonDirectoryControl,
  130. MSG_ID_RxQueryDirectory_1,
  131. MSG_ID_RxQueryDirectory_2,
  132. MSG_ID_RxQueryDirectory_3,
  133. MSG_ID_RxCommonQueryInformation_1 = 55,
  134. MSG_ID_RxCommonQueryInformation_2,
  135. MSG_ID_RxCommonSetInformation_1,
  136. MSG_ID_RxCommonSetInformation_2,
  137. MSG_ID_RxSetBasicInfo,
  138. MSG_ID_RxSetDispositionInfo = 60,
  139. MSG_ID_RxSetRenameInfo,
  140. MSG_ID_RxSetPositionInfo,
  141. MSG_ID_RxSetAllocationInfo_1,
  142. MSG_ID_RxSetAllocationInfo_2,
  143. MSG_ID_RxSetEndOfFileInfo_1 = 65,
  144. MSG_ID_RxSetEndOfFileInfo_2,
  145. MSG_ID_RxSetEndOfFileInfo_3,
  146. MSG_ID_RxSetEndOfFileInfo_4,
  147. MSG_ID_RxQueryBasicInfo,
  148. MSG_ID_RxQueryStandardInfo = 70,
  149. MSG_ID_RxQueryInternalInfo,
  150. MSG_ID_RxQueryEaInfo,
  151. MSG_ID_RxQueryPositionInfo,
  152. MSG_ID_RxQueryNameInfo,
  153. MSG_ID_RxQueryAlternateNameInfo = 75,
  154. MSG_ID_RxQueryCompressedInfo,
  155. MSG_ID_RxSetPipeInfo,
  156. MSG_ID_RxQueryPipeInfo,
  157. MSG_ID_RxCommonFlushBuffers,
  158. MSG_ID_RxCommonFileSystemControl = 80,
  159. MSG_ID_RxLowIoFsCtlShell,
  160. MSG_ID_RxLowIoFsCtlShellCompletion_1,
  161. MSG_ID_RxLowIoFsCtlShellCompletion_2,
  162. MSG_ID_RxCommonLockControl_1,
  163. MSG_ID_RxCommonLockControl_2 = 85,
  164. MSG_ID_RxCommonLockControl_3,
  165. MSG_ID_RxCommonLockControl_4,
  166. MSG_ID_RxCommonLockControl_5,
  167. MSG_ID_RxLockOperationCompletion_1,
  168. MSG_ID_RxLockOperationCompletion_2 = 90,
  169. MSG_ID_RxLockOperationCompletion_3,
  170. MSG_ID_RxLockOperationCompletion_4,
  171. MSG_ID_RxLockOperationCompletion_5,
  172. MSG_ID_RxLockOperationCompletion_6,
  173. MSG_ID_RxLockOperationCompletion_7 = 95,
  174. MSG_ID_RxLockOperationCompletion_8,
  175. MSG_ID_RxLockOperationCompletionWithAcquire_1,
  176. MSG_ID_RxLockOperationCompletionWithAcquire_2,
  177. MSG_ID_RxLockOperationCompletionWithAcquire_3,
  178. MSG_ID_RxUnlockOperation = 100,
  179. MSG_ID_RxLowIoLockControlShellCompletion_1,
  180. MSG_ID_RxLowIoLockControlShellCompletion_2,
  181. MSG_ID_RxFinalizeLockList,
  182. MSG_ID_RxLowIoLockControlShell,
  183. MSG_ID_RxRegisterMinirdr = 105,
  184. MSG_ID_RxCommonDevFCBClose,
  185. MSG_ID_RxCommonDevFCBCleanup,
  186. MSG_ID_RxCommonDevFCBFsCtl,
  187. MSG_ID_RxCommonDevFCBQueryVolInfo,
  188. MSG_ID_RxExceptionFilter_1 = 110,
  189. MSG_ID_RxExceptionFilter_2,
  190. MSG_ID_RxFastIoRead_1,
  191. MSG_ID_RxFastIoRead_2,
  192. MSG_ID_RxFastIoRead_3,
  193. MSG_ID_RxFastIoWrite_1 = 115,
  194. MSG_ID_RxFastIoWrite_2,
  195. MSG_ID_RxFastIoCheckIfPossible,
  196. MSG_ID_RxFspDispatch,
  197. MSG_ID_RxFsdPostRequest,
  198. MSG_ID_RxGetNetworkProviderPriority = 120,
  199. MSG_ID_RxAccrueProviderFromServiceName_1,
  200. MSG_ID_RxAccrueProviderFromServiceName_2,
  201. MSG_ID_RxConstructProviderOrder_1,
  202. MSG_ID_RxConstructProviderOrder_2,
  203. MSG_ID_RxCommonRead_1 = 125,
  204. MSG_ID_RxCommonRead_2,
  205. MSG_ID_RxCommonRead_3,
  206. MSG_ID_RxCommonRead_4,
  207. MSG_ID_RxLowIoReadShellCompletion_1,
  208. MSG_ID_RxLowIoReadShellCompletion_2 = 130,
  209. MSG_ID_RxLowIoReadShellCompletion_3,
  210. MSG_ID_RxLowIoReadShell_1,
  211. MSG_ID_RxLowIoReadShell_2,
  212. MSG_ID_RxSetDomainForMailslotBroadcast_1,
  213. MSG_ID_RxSetDomainForMailslotBroadcast_2 = 135,
  214. MSG_ID_RxCommonQueryVolumeInformation_1,
  215. MSG_ID_RxCommonQueryVolumeInformation_2,
  216. MSG_ID_RxCommonSetVolumeInformation_1,
  217. MSG_ID_RxCommonSetVolumeInformation_2,
  218. MSG_ID_RxCommonWrite_1 = 140,
  219. MSG_ID_RxCommonWrite_2,
  220. MSG_ID_RxCommonWrite_3,
  221. MSG_ID_RxCommonWrite_4,
  222. MSG_ID_RxCommonWrite_5,
  223. MSG_ID_RxCommonWrite_6 = 145,
  224. MSG_ID_RxCommonWrite_7,
  225. MSG_ID_RxLowIoWriteShellCompletion_1,
  226. MSG_ID_RxLowIoWriteShellCompletion_2,
  227. MSG_ID_RxLowIoWriteShell_1,
  228. MSG_ID_RxLowIoWriteShell_2 =150,
  229. MSG_ID_RxFinalizeNetTable_1,
  230. MSG_ID_RxFinalizeNetTable_2,
  231. MSG_ID_RxFinalizeConnection,
  232. MSG_ID_RxFinalizeSrvCall,
  233. MSG_ID_RxFinalizeNetRoot = 155,
  234. MSG_ID_RxFinalizeVNetRoot,
  235. MSG_ID_RxCreateNetFcb_1,
  236. MSG_ID_RxCreateNetFcb_2,
  237. MSG_ID_RxCreateNetFcb_3,
  238. MSG_ID_RxFinalizeNetFcb = 160,
  239. MSG_ID_RxCreateSrvOpen,
  240. MSG_ID_RxFinalizeSrvOpen,
  241. MSG_ID_RxCreateNetFobx,
  242. MSG_ID_RxFinalizeNetFobx_1,
  243. MSG_ID_RxFinalizeNetFobx_2 = 165,
  244. MSG_ID_RxUninitializeMidMap,
  245. MSG_ID_RxAcquireFcb_1,
  246. MSG_ID_RxAcquireFcb_2,
  247. MSG_ID_RxCeBindToTransport,
  248. MSG_ID_RxCeTearDownTransport = 170,
  249. MSG_ID_RxCeQueryAdapterStatus,
  250. MSG_ID_RxCeQueryTransportInformation,
  251. MSG_ID_RxCeBuildAddress,
  252. MSG_ID_RxCeBuildVC,
  253. MSG_ID_RxCeInitiateVCDisconnect = 175,
  254. MSG_ID_RxCeTearDownVC,
  255. MSG_ID_RxCeBuildConnection,
  256. MSG_ID_RxCeCleanupConnectCallOutContext,
  257. MSG_ID_RxCeCompleteConnectRequest,
  258. MSG_ID_RxCeBuildConnectionOverMultipleTransports_1 = 180,
  259. MSG_ID_RxCeBuildConnectionOverMultipleTransports_2,
  260. MSG_ID_RxCeTearDownConnection,
  261. MSG_ID_RxCeSend,
  262. MSG_ID_RxCeSendDatagram,
  263. MSG_ID_RxFindOrCreateConnections_1 = 185,
  264. MSG_ID_RxFindOrCreateConnections_2,
  265. MSG_ID_RxFinishSrvCallConstruction,
  266. MSG_ID_RxConstructSrvCall,
  267. MSG_ID_RxFindOrConstructVirtualNetRoot,
  268. MSG_ID_RxSpinUpWorkerThread = 190,
  269. MSG_ID_RxSpinUpRequestsDispatcher,
  270. MSG_ID_RxpWorkerThreadDispatcher,
  271. MSG_ID_RxWorkItemDispatcher,
  272. MSG_ID_RxDispatchToWorkerThread,
  273. MSG_ID_RxPostToWorkerThread = 195,
  274. MSG_ID_RxPurgeFobxFromCache,
  275. MSG_ID_RxPurgeFobx_1,
  276. MSG_ID_RxPurgeFobx_2,
  277. MSG_ID_RxPurgeFobx_3,
  278. MSG_ID_RxPurgeFobx_4 = 200,
  279. MSG_ID_RxPurgeRelatedFobxs_1,
  280. MSG_ID_RxPurgeRelatedFobxs_2,
  281. MSG_ID_RxPurgeAllFobxs,
  282. MSG_ID_RxpMarkInstanceForScavengedFinalization,
  283. MSG_ID_RxScavengerFinalizeEntries = 205,
  284. MSG_ID_RxCeBuildTransport,
  285. MSG_ID_RxLastChanceHandlerForChangeBufferingStateRequests_4,
  286. MSG_ID_RxInsertWorkQueueItem,
  287. MSG_ID_RxRefSrvcall,
  288. MSG_ID_RxRefNetRoot = 210,
  289. MSG_ID_RxRefVNetRoot,
  290. MSG_ID_RxRefFcb,
  291. MSG_ID_RxRefSrvOpen,
  292. MSG_ID_RxRefFobx,
  293. MSG_ID_RxDerefSrvcall = 215,
  294. MSG_ID_RxDerefNetRoot,
  295. MSG_ID_RxDerefVNetRoot,
  296. MSG_ID_RxDerefFcb,
  297. MSG_ID_RxDerefSrvOpen,
  298. MSG_ID_RxDerefFobx = 220,
  299. MSG_ID_RxTdiAsynchronousConnectCompletion,
  300. MSG_ID_RxPurgeRelatedFobxs_3,
  301. MSG_ID_RxTrackPagingIoResource_1,
  302. MSG_ID_RxTrackPagingIoResource_2,
  303. MSG_ID_RxTrackPagingIoResource_3 = 225,
  304. MSG_ID_RxSetSimpleInfo,
  305. } RX_WMI_ENUM;
  306. #define WML_ID(_id) ((MSG_ID_ ## _id) & 0xFF)
  307. #define WML_GUID(_id) ((MSG_ID_ ## _id) >> 8)
  308. extern WML_CONTROL_GUID_REG Rdbss_ControlGuids[];
  309. #endif /* __RX_RXWML_H__ */