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.

2423 lines
67 KiB

  1. /*++
  2. Copyright (c) 1996-2001, Microsoft Corporation
  3. Module Name:
  4. mq.h
  5. Abstract:
  6. Master include file for Message Queuing applications
  7. --*/
  8. #ifndef __MQ_H__
  9. #define __MQ_H__
  10. #if defined (_MSC_VER) && (_MSC_VER >= 1020)
  11. #pragma once
  12. #endif
  13. #ifndef __ITransaction_FWD_DEFINED__
  14. #define __ITransaction_FWD_DEFINED__
  15. typedef interface ITransaction ITransaction;
  16. #endif // __ITransaction_FWD_DEFINED__
  17. #ifdef __midl
  18. // This is the PROPVARIANT definition for marshaling.
  19. typedef struct tag_inner_PROPVARIANT tagMQPROPVARIANT;
  20. #else
  21. // This is the standard C layout of the PROPVARIANT.
  22. typedef struct tagPROPVARIANT tagMQPROPVARIANT;
  23. #endif
  24. typedef tagMQPROPVARIANT MQPROPVARIANT;
  25. #define PRLT ( 0 )
  26. #define PRLE ( 1 )
  27. #define PRGT ( 2 )
  28. #define PRGE ( 3 )
  29. #define PREQ ( 4 )
  30. #define PRNE ( 5 )
  31. typedef struct tagMQPROPERTYRESTRICTION
  32. {
  33. ULONG rel;
  34. PROPID prop;
  35. MQPROPVARIANT prval;
  36. } MQPROPERTYRESTRICTION;
  37. typedef struct tagMQRESTRICTION
  38. {
  39. /* [range] */ ULONG cRes;
  40. /* [size_is] */ MQPROPERTYRESTRICTION *paPropRes;
  41. } MQRESTRICTION;
  42. typedef struct tagMQCOLUMNSET
  43. {
  44. /* [range] */ ULONG cCol;
  45. /* [size_is] */ PROPID *aCol;
  46. } MQCOLUMNSET;
  47. #define QUERY_SORTASCEND ( 0 )
  48. #define QUERY_SORTDESCEND ( 1 )
  49. typedef struct tagMQSORTKEY
  50. {
  51. PROPID propColumn;
  52. ULONG dwOrder;
  53. } MQSORTKEY;
  54. typedef struct tagMQSORTSET
  55. {
  56. /* [range] */ ULONG cCol;
  57. /* [size_is] */ MQSORTKEY *aCol;
  58. } MQSORTSET;
  59. typedef HANDLE QUEUEHANDLE;
  60. typedef PROPID MSGPROPID;
  61. typedef struct tagMQMSGPROPS
  62. {
  63. DWORD cProp;
  64. MSGPROPID* aPropID;
  65. MQPROPVARIANT* aPropVar;
  66. HRESULT* aStatus;
  67. } MQMSGPROPS;
  68. typedef PROPID QUEUEPROPID;
  69. typedef struct tagMQQUEUEPROPS
  70. {
  71. DWORD cProp;
  72. QUEUEPROPID* aPropID;
  73. MQPROPVARIANT* aPropVar;
  74. HRESULT* aStatus;
  75. } MQQUEUEPROPS;
  76. typedef PROPID QMPROPID;
  77. typedef struct tagMQQMPROPS
  78. {
  79. DWORD cProp;
  80. QMPROPID* aPropID;
  81. MQPROPVARIANT* aPropVar;
  82. HRESULT* aStatus;
  83. } MQQMPROPS;
  84. typedef struct tagMQPRIVATEPROPS
  85. {
  86. DWORD cProp;
  87. QMPROPID* aPropID;
  88. MQPROPVARIANT* aPropVar;
  89. HRESULT* aStatus;
  90. } MQPRIVATEPROPS;
  91. typedef PROPID MGMTPROPID;
  92. typedef struct tagMQMGMTPROPS
  93. {
  94. DWORD cProp;
  95. MGMTPROPID* aPropID;
  96. MQPROPVARIANT* aPropVar;
  97. HRESULT* aStatus;
  98. } MQMGMTPROPS;
  99. typedef struct tagSEQUENCE_INFO
  100. {
  101. LONGLONG SeqID;
  102. ULONG SeqNo;
  103. ULONG PrevNo;
  104. } SEQUENCE_INFO;
  105. //********************************************************************
  106. // API FLAGS
  107. //********************************************************************
  108. //
  109. // MQOpenQueue - Access values
  110. //
  111. #define MQ_RECEIVE_ACCESS 0x00000001
  112. #define MQ_SEND_ACCESS 0x00000002
  113. #define MQ_PEEK_ACCESS 0x00000020
  114. #define MQ_ADMIN_ACCESS 0x00000080
  115. //
  116. // MQOpenQueue - Share values
  117. //
  118. #define MQ_DENY_NONE 0x00000000
  119. #define MQ_DENY_RECEIVE_SHARE 0x00000001
  120. //
  121. // MQReceiveMessage - Action values
  122. //
  123. #define MQ_ACTION_RECEIVE 0x00000000
  124. #define MQ_ACTION_PEEK_CURRENT 0x80000000
  125. #define MQ_ACTION_PEEK_NEXT 0x80000001
  126. //
  127. // MQReceiveMessageByLookupId - Action values
  128. //
  129. #if(_WIN32_WINNT >= 0x0501)
  130. #define MQ_LOOKUP_PEEK_CURRENT 0x40000010
  131. #define MQ_LOOKUP_PEEK_NEXT 0x40000011
  132. #define MQ_LOOKUP_PEEK_PREV 0x40000012
  133. #define MQ_LOOKUP_PEEK_FIRST 0x40000014
  134. #define MQ_LOOKUP_PEEK_LAST 0x40000018
  135. #define MQ_LOOKUP_RECEIVE_CURRENT 0x40000020
  136. #define MQ_LOOKUP_RECEIVE_NEXT 0x40000021
  137. #define MQ_LOOKUP_RECEIVE_PREV 0x40000022
  138. #define MQ_LOOKUP_RECEIVE_FIRST 0x40000024
  139. #define MQ_LOOKUP_RECEIVE_LAST 0x40000028
  140. #endif
  141. //
  142. // MQSendMessage, MQReceiveMessage: special cases for the transaction parameter
  143. //
  144. #define MQ_NO_TRANSACTION NULL
  145. #define MQ_MTS_TRANSACTION (ITransaction *)1
  146. #define MQ_XA_TRANSACTION (ITransaction *)2
  147. #define MQ_SINGLE_MESSAGE (ITransaction *)3
  148. //********************************************************************
  149. // PRIORITY LIMITS
  150. //********************************************************************
  151. //
  152. // Message priorities
  153. //
  154. #define MQ_MIN_PRIORITY 0 // Minimal message priority
  155. #define MQ_MAX_PRIORITY 7 // Maximal message priority
  156. //********************************************************************
  157. // MESSAGE PROPERTIES
  158. //********************************************************************
  159. #define PROPID_M_BASE 0
  160. #define PROPID_M_CLASS (PROPID_M_BASE + 1) /* VT_UI2 */
  161. #define PROPID_M_MSGID (PROPID_M_BASE + 2) /* VT_UI1|VT_VECTOR */
  162. #define PROPID_M_CORRELATIONID (PROPID_M_BASE + 3) /* VT_UI1|VT_VECTOR */
  163. #define PROPID_M_PRIORITY (PROPID_M_BASE + 4) /* VT_UI1 */
  164. #define PROPID_M_DELIVERY (PROPID_M_BASE + 5) /* VT_UI1 */
  165. #define PROPID_M_ACKNOWLEDGE (PROPID_M_BASE + 6) /* VT_UI1 */
  166. #define PROPID_M_JOURNAL (PROPID_M_BASE + 7) /* VT_UI1 */
  167. #define PROPID_M_APPSPECIFIC (PROPID_M_BASE + 8) /* VT_UI4 */
  168. #define PROPID_M_BODY (PROPID_M_BASE + 9) /* VT_UI1|VT_VECTOR */
  169. #define PROPID_M_BODY_SIZE (PROPID_M_BASE + 10) /* VT_UI4 */
  170. #define PROPID_M_LABEL (PROPID_M_BASE + 11) /* VT_LPWSTR */
  171. #define PROPID_M_LABEL_LEN (PROPID_M_BASE + 12) /* VT_UI4 */
  172. #define PROPID_M_TIME_TO_REACH_QUEUE (PROPID_M_BASE + 13) /* VT_UI4 */
  173. #define PROPID_M_TIME_TO_BE_RECEIVED (PROPID_M_BASE + 14) /* VT_UI4 */
  174. #define PROPID_M_RESP_QUEUE (PROPID_M_BASE + 15) /* VT_LPWSTR */
  175. #define PROPID_M_RESP_QUEUE_LEN (PROPID_M_BASE + 16) /* VT_UI4 */
  176. #define PROPID_M_ADMIN_QUEUE (PROPID_M_BASE + 17) /* VT_LPWSTR */
  177. #define PROPID_M_ADMIN_QUEUE_LEN (PROPID_M_BASE + 18) /* VT_UI4 */
  178. #define PROPID_M_VERSION (PROPID_M_BASE + 19) /* VT_UI4 */
  179. #define PROPID_M_SENDERID (PROPID_M_BASE + 20) /* VT_UI1|VT_VECTOR */
  180. #define PROPID_M_SENDERID_LEN (PROPID_M_BASE + 21) /* VT_UI4 */
  181. #define PROPID_M_SENDERID_TYPE (PROPID_M_BASE + 22) /* VT_UI4 */
  182. #define PROPID_M_PRIV_LEVEL (PROPID_M_BASE + 23) /* VT_UI4 */
  183. #define PROPID_M_AUTH_LEVEL (PROPID_M_BASE + 24) /* VT_UI4 */
  184. #define PROPID_M_AUTHENTICATED (PROPID_M_BASE + 25) /* VT_UI1 */
  185. #define PROPID_M_HASH_ALG (PROPID_M_BASE + 26) /* VT_UI4 */
  186. #define PROPID_M_ENCRYPTION_ALG (PROPID_M_BASE + 27) /* VT_UI4 */
  187. #define PROPID_M_SENDER_CERT (PROPID_M_BASE + 28) /* VT_UI1|VT_VECTOR */
  188. #define PROPID_M_SENDER_CERT_LEN (PROPID_M_BASE + 29) /* VT_UI4 */
  189. #define PROPID_M_SRC_MACHINE_ID (PROPID_M_BASE + 30) /* VT_CLSID */
  190. #define PROPID_M_SENTTIME (PROPID_M_BASE + 31) /* VT_UI4 */
  191. #define PROPID_M_ARRIVEDTIME (PROPID_M_BASE + 32) /* VT_UI4 */
  192. #define PROPID_M_DEST_QUEUE (PROPID_M_BASE + 33) /* VT_LPWSTR */
  193. #define PROPID_M_DEST_QUEUE_LEN (PROPID_M_BASE + 34) /* VT_UI4 */
  194. #define PROPID_M_EXTENSION (PROPID_M_BASE + 35) /* VT_UI1|VT_VECTOR */
  195. #define PROPID_M_EXTENSION_LEN (PROPID_M_BASE + 36) /* VT_UI4 */
  196. #define PROPID_M_SECURITY_CONTEXT (PROPID_M_BASE + 37) /* VT_UI4 */
  197. #define PROPID_M_CONNECTOR_TYPE (PROPID_M_BASE + 38) /* VT_CLSID */
  198. #define PROPID_M_XACT_STATUS_QUEUE (PROPID_M_BASE + 39) /* VT_LPWSTR */
  199. #define PROPID_M_XACT_STATUS_QUEUE_LEN (PROPID_M_BASE + 40) /* VT_UI4 */
  200. #define PROPID_M_TRACE (PROPID_M_BASE + 41) /* VT_UI1 */
  201. #define PROPID_M_BODY_TYPE (PROPID_M_BASE + 42) /* VT_UI4 */
  202. #define PROPID_M_DEST_SYMM_KEY (PROPID_M_BASE + 43) /* VT_UI1|VT_VECTOR */
  203. #define PROPID_M_DEST_SYMM_KEY_LEN (PROPID_M_BASE + 44) /* VT_UI4 */
  204. #define PROPID_M_SIGNATURE (PROPID_M_BASE + 45) /* VT_UI1|VT_VECTOR */
  205. #define PROPID_M_SIGNATURE_LEN (PROPID_M_BASE + 46) /* VT_UI4 */
  206. #define PROPID_M_PROV_TYPE (PROPID_M_BASE + 47) /* VT_UI4 */
  207. #define PROPID_M_PROV_NAME (PROPID_M_BASE + 48) /* VT_LPWSTR */
  208. #define PROPID_M_PROV_NAME_LEN (PROPID_M_BASE + 49) /* VT_UI4 */
  209. #define PROPID_M_FIRST_IN_XACT (PROPID_M_BASE + 50) /* VT_UI1 */
  210. #define PROPID_M_LAST_IN_XACT (PROPID_M_BASE + 51) /* VT_UI1 */
  211. #define PROPID_M_XACTID (PROPID_M_BASE + 52) /* VT_UI1|VT_VECTOR */
  212. #define PROPID_M_AUTHENTICATED_EX (PROPID_M_BASE + 53) /* VT_UI1 */
  213. #if(_WIN32_WINNT >= 0x0501)
  214. #define PROPID_M_RESP_FORMAT_NAME (PROPID_M_BASE + 54) /* VT_LPWSTR */
  215. #define PROPID_M_RESP_FORMAT_NAME_LEN (PROPID_M_BASE + 55) /* VT_UI4 */
  216. #define PROPID_M_DEST_FORMAT_NAME (PROPID_M_BASE + 58) /* VT_LPWSTR */
  217. #define PROPID_M_DEST_FORMAT_NAME_LEN (PROPID_M_BASE + 59) /* VT_UI4 */
  218. #define PROPID_M_LOOKUPID (PROPID_M_BASE + 60) /* VT_UI8 */
  219. #define PROPID_M_SOAP_ENVELOPE (PROPID_M_BASE + 61) /* VT_LPWSTR */
  220. #define PROPID_M_SOAP_ENVELOPE_LEN (PROPID_M_BASE + 62) /* VT_UI4 */
  221. #define PROPID_M_COMPOUND_MESSAGE (PROPID_M_BASE + 63) /* VT_UI1|VT_VECTOR */
  222. #define PROPID_M_COMPOUND_MESSAGE_SIZE (PROPID_M_BASE + 64) /* VT_UI4 */
  223. #define PROPID_M_SOAP_HEADER (PROPID_M_BASE + 65) /* VT_LPWSTR */
  224. #define PROPID_M_SOAP_BODY (PROPID_M_BASE + 66) /* VT_LPWSTR */
  225. #endif
  226. //
  227. // Message Property Size
  228. //
  229. #define PROPID_M_MSGID_SIZE 20
  230. #define PROPID_M_CORRELATIONID_SIZE 20
  231. #define PROPID_M_XACTID_SIZE 20
  232. //********************************************************************
  233. // MESSAGE CLASS VALUES
  234. //********************************************************************
  235. //
  236. // Message class values are 16 bits laid out as follows:
  237. //
  238. // 1 1 1 1 1 1
  239. // 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  240. // +-+-+-+-------+-----------------+
  241. // |S|R|H|Reserve| Class code |
  242. // +-+-+-+-------+-----------------+
  243. //
  244. // where
  245. //
  246. // S - is the severity flag
  247. // 0 - Normal Message/Positive Acknowledgment (ACK)
  248. // 1 - Negative Acknowledgment (NACK)
  249. //
  250. // R - is the receive flag
  251. // 0 - Arrival ACK/NACK
  252. // 1 - Receive ACK/NACK
  253. //
  254. // H - is http flag
  255. // 0 - no http
  256. // 1 - http
  257. #define MQCLASS_CODE(s, r, code) ((USHORT)(((s) << 15) | ((r) << 14) | (code)))
  258. #define MQCLASS_NACK(c) ((c) & 0x8000)
  259. #define MQCLASS_RECEIVE(c) ((c) & 0x4000)
  260. #define MQCLASS_NACK_HTTP(c) (((c) & 0xA000) == 0xA000)
  261. //
  262. // Normal message
  263. //
  264. #define MQMSG_CLASS_NORMAL MQCLASS_CODE(0, 0, 0x00)
  265. //
  266. // Report message
  267. //
  268. #define MQMSG_CLASS_REPORT MQCLASS_CODE(0, 0, 0x01)
  269. //
  270. // Arrival acknowledgment. The message has reached its destination queue
  271. //
  272. #define MQMSG_CLASS_ACK_REACH_QUEUE MQCLASS_CODE(0, 0, 0x02)
  273. //
  274. // Receive acknowledgment. The message has been received by an application
  275. //
  276. #define MQMSG_CLASS_ACK_RECEIVE MQCLASS_CODE(0, 1, 0x00)
  277. //-----------------------------------------------
  278. //
  279. // Negative arrival acknowledgments
  280. //
  281. //
  282. // Destination queue cannot be reached, the queue may have been deleted
  283. //
  284. #define MQMSG_CLASS_NACK_BAD_DST_Q MQCLASS_CODE(1, 0, 0x00)
  285. //
  286. // The message was purged before reaching its destination queue
  287. //
  288. #define MQMSG_CLASS_NACK_PURGED MQCLASS_CODE(1, 0, 0x01)
  289. //
  290. // Time to reach queue has expired
  291. //
  292. #define MQMSG_CLASS_NACK_REACH_QUEUE_TIMEOUT MQCLASS_CODE(1, 0, 0x02)
  293. //
  294. // The message has exceeded the queue quota
  295. //
  296. #define MQMSG_CLASS_NACK_Q_EXCEED_QUOTA MQCLASS_CODE(1, 0, 0x03)
  297. //
  298. // The sender does not have send access rights to the queue.
  299. //
  300. #define MQMSG_CLASS_NACK_ACCESS_DENIED MQCLASS_CODE(1, 0, 0x04)
  301. //
  302. // The message hop count was exceeded
  303. //
  304. #define MQMSG_CLASS_NACK_HOP_COUNT_EXCEEDED MQCLASS_CODE(1, 0, 0x05)
  305. //
  306. // The message signature is bad. The message could not be authenticated.
  307. //
  308. #define MQMSG_CLASS_NACK_BAD_SIGNATURE MQCLASS_CODE(1, 0, 0x06)
  309. //
  310. // The message could not be decrypted.
  311. //
  312. #define MQMSG_CLASS_NACK_BAD_ENCRYPTION MQCLASS_CODE(1, 0, 0x07)
  313. //
  314. // The message could not be encrypted for the destination.
  315. //
  316. #define MQMSG_CLASS_NACK_COULD_NOT_ENCRYPT MQCLASS_CODE(1, 0, 0x08)
  317. //
  318. // The message was sent to a non-transactional queue within a transaction.
  319. //
  320. #define MQMSG_CLASS_NACK_NOT_TRANSACTIONAL_Q MQCLASS_CODE(1, 0, 0x09)
  321. //
  322. // The message was sent to a transactional queue not within a transaction.
  323. //
  324. #define MQMSG_CLASS_NACK_NOT_TRANSACTIONAL_MSG MQCLASS_CODE(1, 0, 0x0A)
  325. //
  326. // The requested crypto provider for encryption is not supported by the destination.
  327. //
  328. #define MQMSG_CLASS_NACK_UNSUPPORTED_CRYPTO_PROVIDER MQCLASS_CODE(1, 0, 0x0B)
  329. //
  330. // The QM GUID has changed and therefore the messages was thrown away.
  331. //
  332. #define MQMSG_CLASS_NACK_SOURCE_COMPUTER_GUID_CHANGED MQCLASS_CODE(1, 0, 0x0C)
  333. //-----------------------------------------------
  334. //
  335. // Negative receive acknowledgments
  336. //
  337. //
  338. // The queue was deleted, after the message arrived
  339. //
  340. #define MQMSG_CLASS_NACK_Q_DELETED MQCLASS_CODE(1, 1, 0x00)
  341. //
  342. // The message was purged at the destination queue
  343. //
  344. #define MQMSG_CLASS_NACK_Q_PURGED MQCLASS_CODE(1, 1, 0x01)
  345. //
  346. // Time to receive has expired while the message was still in its destination queue
  347. // (generated by destination)
  348. //
  349. #define MQMSG_CLASS_NACK_RECEIVE_TIMEOUT MQCLASS_CODE(1, 1, 0x02)
  350. //
  351. // Time to receive has expired while the message was still in its local outgoing queue
  352. // (generated locally by sender)
  353. //
  354. #define MQMSG_CLASS_NACK_RECEIVE_TIMEOUT_AT_SENDER MQCLASS_CODE(1, 1, 0x03)
  355. //------ PROPID_M_ACKNOWLEDGE ---------------
  356. #define MQMSG_ACKNOWLEDGMENT_NONE 0x00
  357. #define MQMSG_ACKNOWLEDGMENT_POS_ARRIVAL 0x01
  358. #define MQMSG_ACKNOWLEDGMENT_POS_RECEIVE 0x02
  359. #define MQMSG_ACKNOWLEDGMENT_NEG_ARRIVAL 0x04
  360. #define MQMSG_ACKNOWLEDGMENT_NEG_RECEIVE 0x08
  361. #define MQMSG_ACKNOWLEDGMENT_NACK_REACH_QUEUE ((UCHAR)( \
  362. MQMSG_ACKNOWLEDGMENT_NEG_ARRIVAL ))
  363. #define MQMSG_ACKNOWLEDGMENT_FULL_REACH_QUEUE ((UCHAR)( \
  364. MQMSG_ACKNOWLEDGMENT_NEG_ARRIVAL | \
  365. MQMSG_ACKNOWLEDGMENT_POS_ARRIVAL ))
  366. #define MQMSG_ACKNOWLEDGMENT_NACK_RECEIVE ((UCHAR)( \
  367. MQMSG_ACKNOWLEDGMENT_NEG_ARRIVAL | \
  368. MQMSG_ACKNOWLEDGMENT_NEG_RECEIVE ))
  369. #define MQMSG_ACKNOWLEDGMENT_FULL_RECEIVE ((UCHAR)( \
  370. MQMSG_ACKNOWLEDGMENT_NEG_ARRIVAL | \
  371. MQMSG_ACKNOWLEDGMENT_NEG_RECEIVE | \
  372. MQMSG_ACKNOWLEDGMENT_POS_RECEIVE ))
  373. //------ PROPID_M_DELIVERY ------------------
  374. #define MQMSG_DELIVERY_EXPRESS 0
  375. #define MQMSG_DELIVERY_RECOVERABLE 1
  376. //----- PROPID_M_JOURNAL --------------------
  377. #define MQMSG_JOURNAL_NONE 0
  378. #define MQMSG_DEADLETTER 1
  379. #define MQMSG_JOURNAL 2
  380. //----- PROPID_M_TRACE ----------------------
  381. #define MQMSG_TRACE_NONE 0
  382. #define MQMSG_SEND_ROUTE_TO_REPORT_QUEUE 1
  383. //----- PROPID_M_SENDERID_TYPE --------------
  384. #define MQMSG_SENDERID_TYPE_NONE 0
  385. #define MQMSG_SENDERID_TYPE_SID 1
  386. //----- PROPID_M_PRIV_LEVEL -----------------
  387. #define MQMSG_PRIV_LEVEL_NONE 0
  388. #define MQMSG_PRIV_LEVEL_BODY_BASE 0x01
  389. #define MQMSG_PRIV_LEVEL_BODY_ENHANCED 0x03
  390. //----- PROPID_M_AUTH_LEVEL -----------------
  391. #define MQMSG_AUTH_LEVEL_NONE 0
  392. #define MQMSG_AUTH_LEVEL_ALWAYS 1
  393. //
  394. // MQMSG_AUTH_LEVEL_MSMQxx are obsolete
  395. // you should use MQMSG_AUTH_LEVEL_SIGxx
  396. //
  397. #define MQMSG_AUTH_LEVEL_MSMQ10 2
  398. #define MQMSG_AUTH_LEVEL_MSMQ20 4
  399. #define MQMSG_AUTH_LEVEL_SIG10 2
  400. #define MQMSG_AUTH_LEVEL_SIG20 4
  401. #define MQMSG_AUTH_LEVEL_SIG30 8
  402. //----- PROPID_M_AUTHENTICATED -----------------
  403. //----- PROPID_M_AUTHENTICATED_EX --------------
  404. #define MQMSG_AUTHENTICATION_NOT_REQUESTED 0
  405. #define MQMSG_AUTHENTICATION_REQUESTED 1
  406. //
  407. // MQMSG_AUTHENTICATION_REQUESTED_EX is obsolete
  408. // use the values MQMSG_AUTHENTICATED_SIGxx
  409. // for PROPID_M_AUTHENTICATED_EX
  410. //
  411. #define MQMSG_AUTHENTICATION_REQUESTED_EX 3
  412. #define MQMSG_AUTHENTICATED_SIG10 1
  413. #define MQMSG_AUTHENTICATED_SIG20 3
  414. #define MQMSG_AUTHENTICATED_SIG30 5
  415. #define MQMSG_AUTHENTICATED_SIGXML 9
  416. //----- PROPID_M_FIRST_IN_XACT --------------
  417. #define MQMSG_NOT_FIRST_IN_XACT 0
  418. #define MQMSG_FIRST_IN_XACT 1
  419. //----- PROPID_M_LAST_IN_XACT --------------
  420. #define MQMSG_NOT_LAST_IN_XACT 0
  421. #define MQMSG_LAST_IN_XACT 1
  422. //********************************************************************
  423. // QUEUE PROPERTIES
  424. //********************************************************************
  425. #define PROPID_Q_BASE 100
  426. #define PROPID_Q_INSTANCE (PROPID_Q_BASE + 1) /* VT_CLSID */
  427. #define PROPID_Q_TYPE (PROPID_Q_BASE + 2) /* VT_CLSID */
  428. #define PROPID_Q_PATHNAME (PROPID_Q_BASE + 3) /* VT_LPWSTR */
  429. #define PROPID_Q_JOURNAL (PROPID_Q_BASE + 4) /* VT_UI1 */
  430. #define PROPID_Q_QUOTA (PROPID_Q_BASE + 5) /* VT_UI4 */
  431. #define PROPID_Q_BASEPRIORITY (PROPID_Q_BASE + 6) /* VT_I2 */
  432. #define PROPID_Q_JOURNAL_QUOTA (PROPID_Q_BASE + 7) /* VT_UI4 */
  433. #define PROPID_Q_LABEL (PROPID_Q_BASE + 8) /* VT_LPWSTR */
  434. #define PROPID_Q_CREATE_TIME (PROPID_Q_BASE + 9) /* VT_I4 */
  435. #define PROPID_Q_MODIFY_TIME (PROPID_Q_BASE + 10) /* VT_I4 */
  436. #define PROPID_Q_AUTHENTICATE (PROPID_Q_BASE + 11) /* VT_UI1 */
  437. #define PROPID_Q_PRIV_LEVEL (PROPID_Q_BASE + 12) /* VT_UI4 */
  438. #define PROPID_Q_TRANSACTION (PROPID_Q_BASE + 13) /* VT_UI1 */
  439. #define PROPID_Q_PATHNAME_DNS (PROPID_Q_BASE + 24) /* VT_LPWSTR */
  440. #define PROPID_Q_MULTICAST_ADDRESS (PROPID_Q_BASE + 25) /* VT_LPWSTR */
  441. #define PROPID_Q_ADS_PATH (PROPID_Q_BASE + 26) /* VT_LPWSTR */
  442. //----- PROPID_Q_JOURNAL ------------------
  443. #define MQ_JOURNAL_NONE (unsigned char)0
  444. #define MQ_JOURNAL (unsigned char)1
  445. //----- PROPID_Q_TYPE ------------------
  446. // {55EE8F32-CCE9-11cf-B108-0020AFD61CE9}
  447. #define MQ_QTYPE_REPORT {0x55ee8f32, 0xcce9, 0x11cf, \
  448. {0xb1, 0x8, 0x0, 0x20, 0xaf, 0xd6, 0x1c, 0xe9}}
  449. // {55EE8F33-CCE9-11cf-B108-0020AFD61CE9}
  450. #define MQ_QTYPE_TEST {0x55ee8f33, 0xcce9, 0x11cf, \
  451. {0xb1, 0x8, 0x0, 0x20, 0xaf, 0xd6, 0x1c, 0xe9}}
  452. //----- PROPID_Q_TRANSACTION ------------------
  453. #define MQ_TRANSACTIONAL_NONE (unsigned char)0
  454. #define MQ_TRANSACTIONAL (unsigned char)1
  455. //----- PROPID_Q_AUTHENTICATE ------------------
  456. #define MQ_AUTHENTICATE_NONE (unsigned char)0
  457. #define MQ_AUTHENTICATE (unsigned char)1
  458. //----- PROPID_Q_PRIV_LEVEL ------------------
  459. #define MQ_PRIV_LEVEL_NONE (unsigned long)0
  460. #define MQ_PRIV_LEVEL_OPTIONAL (unsigned long)1
  461. #define MQ_PRIV_LEVEL_BODY (unsigned long)2
  462. //********************************************************************
  463. // MACHINE PROPERTIES
  464. //********************************************************************
  465. #define PROPID_QM_BASE 200
  466. #define PROPID_QM_SITE_ID (PROPID_QM_BASE + 1) /* VT_CLSID */
  467. #define PROPID_QM_MACHINE_ID (PROPID_QM_BASE + 2) /* VT_CLSID */
  468. #define PROPID_QM_PATHNAME (PROPID_QM_BASE + 3) /* VT_LPWSTR */
  469. #define PROPID_QM_CONNECTION (PROPID_QM_BASE + 4) /* VT_LPWSTR|VT_VECTOR */
  470. #define PROPID_QM_ENCRYPTION_PK (PROPID_QM_BASE + 5) /* VT_UI1|VT_VECTOR */
  471. #define PROPID_QM_ENCRYPTION_PK_BASE (PROPID_QM_BASE + 31) /* VT_UI1|VT_VECTOR */
  472. #define PROPID_QM_ENCRYPTION_PK_ENHANCED (PROPID_QM_BASE + 32) /* VT_UI1|VT_VECTOR */
  473. #define PROPID_QM_PATHNAME_DNS (PROPID_QM_BASE + 33) /* VT_LPWSTR */
  474. //********************************************************************
  475. // PRIVATE COMPUTER PROPERTIES
  476. //********************************************************************
  477. #define PROPID_PC_BASE 5800
  478. #define PROPID_PC_VERSION (PROPID_PC_BASE + 1) /* VT_UI4 */
  479. #define PROPID_PC_DS_ENABLED (PROPID_PC_BASE + 2) /* VT_BOOL */
  480. //********************************************************************
  481. // LOCAL ADMIN MSMQ MACHINE PROPERTIES
  482. //********************************************************************
  483. #define PROPID_MGMT_MSMQ_BASE 0
  484. #define PROPID_MGMT_MSMQ_ACTIVEQUEUES (PROPID_MGMT_MSMQ_BASE + 1) /* VT_LPWSTR | VT_VECTOR */
  485. #define PROPID_MGMT_MSMQ_PRIVATEQ (PROPID_MGMT_MSMQ_BASE + 2) /* VT_LPWSTR | VT_VECTOR */
  486. #define PROPID_MGMT_MSMQ_DSSERVER (PROPID_MGMT_MSMQ_BASE + 3) /* VT_LPWSTR */
  487. #define PROPID_MGMT_MSMQ_CONNECTED (PROPID_MGMT_MSMQ_BASE + 4) /* VT_LPWSTR */
  488. #define PROPID_MGMT_MSMQ_TYPE (PROPID_MGMT_MSMQ_BASE + 5) /* VT_LPWSTR */
  489. #define PROPID_MGMT_MSMQ_BYTES_IN_ALL_QUEUES (PROPID_MGMT_QUEUE_BASE + 6) /* VT_UI8 */
  490. //
  491. // Returned Value for PROPID_MGMT_MSMQ_CONNECTED property
  492. //
  493. #define MSMQ_CONNECTED L"CONNECTED"
  494. #define MSMQ_DISCONNECTED L"DISCONNECTED"
  495. //********************************************************************
  496. // LOCAL ADMIN MSMQ QUEUE PROPERTIES
  497. //********************************************************************
  498. #define PROPID_MGMT_QUEUE_BASE 0
  499. #define PROPID_MGMT_QUEUE_PATHNAME (PROPID_MGMT_QUEUE_BASE + 1) /* VT_LPWSTR */
  500. #define PROPID_MGMT_QUEUE_FORMATNAME (PROPID_MGMT_QUEUE_BASE + 2) /* VT_LPWSTR */
  501. #define PROPID_MGMT_QUEUE_TYPE (PROPID_MGMT_QUEUE_BASE + 3) /* VT_LPWSTR */
  502. #define PROPID_MGMT_QUEUE_LOCATION (PROPID_MGMT_QUEUE_BASE + 4) /* VT_LPWSTR */
  503. #define PROPID_MGMT_QUEUE_XACT (PROPID_MGMT_QUEUE_BASE + 5) /* VT_LPWSTR */
  504. #define PROPID_MGMT_QUEUE_FOREIGN (PROPID_MGMT_QUEUE_BASE + 6) /* VT_LPWSTR */
  505. #define PROPID_MGMT_QUEUE_MESSAGE_COUNT (PROPID_MGMT_QUEUE_BASE + 7) /* VT_UI4 */
  506. #define PROPID_MGMT_QUEUE_BYTES_IN_QUEUE (PROPID_MGMT_QUEUE_BASE + 8) /* VT_UI4 */
  507. #define PROPID_MGMT_QUEUE_JOURNAL_MESSAGE_COUNT (PROPID_MGMT_QUEUE_BASE + 9) /* VT_UI4 */
  508. #define PROPID_MGMT_QUEUE_BYTES_IN_JOURNAL (PROPID_MGMT_QUEUE_BASE + 10) /* VT_UI4 */
  509. #define PROPID_MGMT_QUEUE_STATE (PROPID_MGMT_QUEUE_BASE + 11) /* VT_LPWSTR */
  510. #define PROPID_MGMT_QUEUE_NEXTHOPS (PROPID_MGMT_QUEUE_BASE + 12) /* VT_LPWSTR|VT_VECTOR */
  511. #define PROPID_MGMT_QUEUE_EOD_LAST_ACK (PROPID_MGMT_QUEUE_BASE + 13) /* VT_BLOB */
  512. #define PROPID_MGMT_QUEUE_EOD_LAST_ACK_TIME (PROPID_MGMT_QUEUE_BASE + 14) /* VT_I4 */
  513. #define PROPID_MGMT_QUEUE_EOD_LAST_ACK_COUNT (PROPID_MGMT_QUEUE_BASE + 15) /* VT_UI4 */
  514. #define PROPID_MGMT_QUEUE_EOD_FIRST_NON_ACK (PROPID_MGMT_QUEUE_BASE + 16) /* VT_BLOB */
  515. #define PROPID_MGMT_QUEUE_EOD_LAST_NON_ACK (PROPID_MGMT_QUEUE_BASE + 17) /* VT_BLOB */
  516. #define PROPID_MGMT_QUEUE_EOD_NEXT_SEQ (PROPID_MGMT_QUEUE_BASE + 18) /* VT_BLOB */
  517. #define PROPID_MGMT_QUEUE_EOD_NO_READ_COUNT (PROPID_MGMT_QUEUE_BASE + 19) /* VT_UI4 */
  518. #define PROPID_MGMT_QUEUE_EOD_NO_ACK_COUNT (PROPID_MGMT_QUEUE_BASE + 20) /* VT_UI4 */
  519. #define PROPID_MGMT_QUEUE_EOD_RESEND_TIME (PROPID_MGMT_QUEUE_BASE + 21) /* VT_I4 */
  520. #define PROPID_MGMT_QUEUE_EOD_RESEND_INTERVAL (PROPID_MGMT_QUEUE_BASE + 22) /* VT_UI4 */
  521. #define PROPID_MGMT_QUEUE_EOD_RESEND_COUNT (PROPID_MGMT_QUEUE_BASE + 23) /* VT_UI4 */
  522. #define PROPID_MGMT_QUEUE_EOD_SOURCE_INFO (PROPID_MGMT_QUEUE_BASE + 24) /* VT_VARIANT|VT_VECTOR */
  523. //
  524. // Alternative names for "Bytes in ..."
  525. //
  526. #define PROPID_MGMT_QUEUE_USED_QUOTA PROPID_MGMT_QUEUE_BYTES_IN_QUEUE
  527. #define PROPID_MGMT_QUEUE_JOURNAL_USED_QUOTA PROPID_MGMT_QUEUE_BYTES_IN_JOURNAL
  528. //
  529. // Returned value for PROPID_MGMT_QUEUE_TYPE
  530. //
  531. #define MGMT_QUEUE_TYPE_PUBLIC L"PUBLIC"
  532. #define MGMT_QUEUE_TYPE_PRIVATE L"PRIVATE"
  533. #define MGMT_QUEUE_TYPE_MACHINE L"MACHINE"
  534. #define MGMT_QUEUE_TYPE_CONNECTOR L"CONNECTOR"
  535. #define MGMT_QUEUE_TYPE_MULTICAST L"MULTICAST"
  536. //
  537. // Returned value for PROPID_MGMT_QUEUE_STATE
  538. //
  539. #define MGMT_QUEUE_STATE_LOCAL L"LOCAL CONNECTION"
  540. #define MGMT_QUEUE_STATE_NONACTIVE L"INACTIVE"
  541. #define MGMT_QUEUE_STATE_WAITING L"WAITING"
  542. #define MGMT_QUEUE_STATE_NEED_VALIDATE L"NEED VALIDATION"
  543. #define MGMT_QUEUE_STATE_ONHOLD L"ONHOLD"
  544. #define MGMT_QUEUE_STATE_CONNECTED L"CONNECTED"
  545. #define MGMT_QUEUE_STATE_DISCONNECTING L"DISCONNECTING"
  546. #define MGMT_QUEUE_STATE_DISCONNECTED L"DISCONNECTED"
  547. #define MGMT_QUEUE_STATE_LOCKED L"LOCKED"
  548. //
  549. // Returned value for PROPID_MGMT_QUEUE_LOCATION
  550. //
  551. #define MGMT_QUEUE_LOCAL_LOCATION L"LOCAL"
  552. #define MGMT_QUEUE_REMOTE_LOCATION L"REMOTE"
  553. //
  554. // Returned Value for PROPID_MGMT_QUEUE_XACT and PROPID_MGMT_QUEUE_FOREIGN
  555. //
  556. #define MGMT_QUEUE_UNKNOWN_TYPE L"UNKNOWN"
  557. //
  558. // Obselete names left for backword compatibility.
  559. //
  560. #define MGMT_QUEUE_CORRECT_TYPE L"YES"
  561. #define MGMT_QUEUE_INCORRECT_TYPE L"NO"
  562. //
  563. // Names for Returned Value for PROPID_MGMT_QUEUE_XACT
  564. //
  565. //#define MGMT_QUEUE_UNKNOWN_TYPE L"UNKNOWN"
  566. #define MGMT_QUEUE_TRANSACTIONAL_TYPE L"YES"
  567. #define MGMT_QUEUE_NOT_TRANSACTIONAL_TYPE L"NO"
  568. //
  569. // Names for Returned Value for PROPID_MGMT_QUEUE_FOREIGN
  570. //
  571. //#define MGMT_QUEUE_UNKNOWN_TYPE L"UNKNOWN"
  572. #define MGMT_QUEUE_FOREIGN_TYPE L"YES"
  573. #define MGMT_QUEUE_NOT_FOREIGN_TYPE L"NO"
  574. //
  575. // Object parameter values for MQMgmtAction API
  576. //
  577. #define MO_MACHINE_TOKEN L"MACHINE"
  578. #define MO_QUEUE_TOKEN L"QUEUE"
  579. //
  580. // Action parameter values for MQMgmtAction API
  581. //
  582. #define MACHINE_ACTION_CONNECT L"CONNECT"
  583. #define MACHINE_ACTION_DISCONNECT L"DISCONNECT"
  584. #define MACHINE_ACTION_TIDY L"TIDY"
  585. #define QUEUE_ACTION_PAUSE L"PAUSE"
  586. #define QUEUE_ACTION_RESUME L"RESUME"
  587. #define QUEUE_ACTION_EOD_RESEND L"EOD_RESEND"
  588. //
  589. // LONG_LIVED is the default for PROPID_M_TIME_TO_REACH_QUEUE. If calls
  590. // to MQSendMessage() specify this value, or not specify this property at
  591. // all, then the actual timeout is obtained from Active Directory.
  592. //
  593. #define LONG_LIVED 0xfffffffe
  594. #define MQ_MAX_Q_NAME_LEN 124 // Maximal WCHAR length of a queue name.
  595. #define MQ_MAX_Q_LABEL_LEN 124
  596. #define MQ_MAX_MSG_LABEL_LEN 250
  597. /////////////////////////////////////////////////////////////////////////
  598. //
  599. // Message Queuing Success values
  600. //
  601. //
  602. /////////////////////////////////////////////////////////////////////////
  603. #define MQ_OK ((HRESULT)0L)
  604. /////////////////////////////////////////////////////////////////////////
  605. //
  606. // Message Queuing Information values
  607. //
  608. //
  609. /////////////////////////////////////////////////////////////////////////
  610. //
  611. // Values are 32 bit values layed out as follows:
  612. //
  613. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  614. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  615. // +---+-+-+-----------------------+-------------------------------+
  616. // |Sev|C|R| Facility | Code |
  617. // +---+-+-+-----------------------+-------------------------------+
  618. //
  619. // where
  620. //
  621. // Sev - is the severity code
  622. //
  623. // 00 - Success
  624. // 01 - Informational
  625. // 10 - Warning
  626. // 11 - Error
  627. //
  628. // C - is the Customer code flag
  629. //
  630. // R - is a reserved bit
  631. //
  632. // Facility - is the facility code
  633. //
  634. // Code - is the facility's status code
  635. //
  636. //
  637. // Define the facility codes
  638. //
  639. //
  640. // Define the severity codes
  641. //
  642. //
  643. // MessageId: MQ_INFORMATION_PROPERTY
  644. //
  645. // MessageText:
  646. //
  647. // One or more of the properties passed resulted in a warning, but the function completed.
  648. //
  649. #define MQ_INFORMATION_PROPERTY ((HRESULT)0x400E0001L)
  650. //
  651. // MessageId: MQ_INFORMATION_ILLEGAL_PROPERTY
  652. //
  653. // MessageText:
  654. //
  655. // The property ID is invalid.
  656. //
  657. #define MQ_INFORMATION_ILLEGAL_PROPERTY ((HRESULT)0x400E0002L)
  658. //
  659. // MessageId: MQ_INFORMATION_PROPERTY_IGNORED
  660. //
  661. // MessageText:
  662. //
  663. // The property specified was ignored for this operation (this occurs,
  664. // for example, when PROPID_M_SENDERID is passed to SendMessage()).
  665. //
  666. #define MQ_INFORMATION_PROPERTY_IGNORED ((HRESULT)0x400E0003L)
  667. //
  668. // MessageId: MQ_INFORMATION_UNSUPPORTED_PROPERTY
  669. //
  670. // MessageText:
  671. //
  672. // The property specified is not supported and was ignored for this operation.
  673. //
  674. #define MQ_INFORMATION_UNSUPPORTED_PROPERTY ((HRESULT)0x400E0004L)
  675. //
  676. // MessageId: MQ_INFORMATION_DUPLICATE_PROPERTY
  677. //
  678. // MessageText:
  679. //
  680. // The property specified is already in the property identifier array.
  681. // The duplicate was ignored for this operation.
  682. //
  683. #define MQ_INFORMATION_DUPLICATE_PROPERTY ((HRESULT)0x400E0005L)
  684. //
  685. // MessageId: MQ_INFORMATION_OPERATION_PENDING
  686. //
  687. // MessageText:
  688. //
  689. // An asynchronous operation is currently pending.
  690. //
  691. #define MQ_INFORMATION_OPERATION_PENDING ((HRESULT)0x400E0006L)
  692. //
  693. // MessageId: MQ_INFORMATION_FORMATNAME_BUFFER_TOO_SMALL
  694. //
  695. // MessageText:
  696. //
  697. // The format name buffer supplied to MQCreateQueue was too small
  698. // to hold the format name, however the queue was created successfully.
  699. //
  700. #define MQ_INFORMATION_FORMATNAME_BUFFER_TOO_SMALL ((HRESULT)0x400E0009L)
  701. //
  702. // MessageId: MQ_INFORMATION_INTERNAL_USER_CERT_EXIST
  703. //
  704. // MessageText:
  705. //
  706. // An internal Message Queuing certificate already exists for this user.
  707. //
  708. #define MQ_INFORMATION_INTERNAL_USER_CERT_EXIST ((HRESULT)0x400E000AL)
  709. //
  710. // MessageId: MQ_INFORMATION_OWNER_IGNORED
  711. //
  712. // MessageText:
  713. //
  714. // The queue owner was not set during the processing of this call to MQSetQueueSecurity().
  715. //
  716. #define MQ_INFORMATION_OWNER_IGNORED ((HRESULT)0x400E000BL)
  717. /////////////////////////////////////////////////////////////////////////
  718. //
  719. // Message Queuing Error values
  720. //
  721. //
  722. /////////////////////////////////////////////////////////////////////////
  723. //
  724. // MessageId: MQ_ERROR
  725. //
  726. // MessageText:
  727. //
  728. // Generic error code.
  729. //
  730. #define MQ_ERROR ((HRESULT)0xC00E0001L)
  731. //
  732. // MessageId: MQ_ERROR_PROPERTY
  733. //
  734. // MessageText:
  735. //
  736. // One or more of the properties passed are invalid.
  737. //
  738. #define MQ_ERROR_PROPERTY ((HRESULT)0xC00E0002L)
  739. //
  740. // MessageId: MQ_ERROR_QUEUE_NOT_FOUND
  741. //
  742. // MessageText:
  743. //
  744. // The queue does not exist or you do not have sufficient permissions to perform the operation.
  745. //
  746. #define MQ_ERROR_QUEUE_NOT_FOUND ((HRESULT)0xC00E0003L)
  747. //
  748. // MessageId: MQ_ERROR_QUEUE_NOT_ACTIVE
  749. //
  750. // MessageText:
  751. //
  752. // The queue is not open or may not exist.
  753. //
  754. #define MQ_ERROR_QUEUE_NOT_ACTIVE ((HRESULT)0xC00E0004L)
  755. //
  756. // MessageId: MQ_ERROR_QUEUE_EXISTS
  757. //
  758. // MessageText:
  759. //
  760. // A queue with the same path name already exists.
  761. //
  762. #define MQ_ERROR_QUEUE_EXISTS ((HRESULT)0xC00E0005L)
  763. //
  764. // MessageId: MQ_ERROR_INVALID_PARAMETER
  765. //
  766. // MessageText:
  767. //
  768. // An invalid parameter was passed to a function.
  769. //
  770. #define MQ_ERROR_INVALID_PARAMETER ((HRESULT)0xC00E0006L)
  771. //
  772. // MessageId: MQ_ERROR_INVALID_HANDLE
  773. //
  774. // MessageText:
  775. //
  776. // An invalid handle was passed to a function.
  777. //
  778. #define MQ_ERROR_INVALID_HANDLE ((HRESULT)0xC00E0007L)
  779. //
  780. // MessageId: MQ_ERROR_OPERATION_CANCELLED
  781. //
  782. // MessageText:
  783. //
  784. // The operation was canceled before it could be completed.
  785. //
  786. #define MQ_ERROR_OPERATION_CANCELLED ((HRESULT)0xC00E0008L)
  787. //
  788. // MessageId: MQ_ERROR_SHARING_VIOLATION
  789. //
  790. // MessageText:
  791. //
  792. // There is a sharing violation. The queue is already open for exclusive retrieval.
  793. //
  794. #define MQ_ERROR_SHARING_VIOLATION ((HRESULT)0xC00E0009L)
  795. //
  796. // MessageId: MQ_ERROR_SERVICE_NOT_AVAILABLE
  797. //
  798. // MessageText:
  799. //
  800. // The Message Queuing service is not available
  801. //
  802. #define MQ_ERROR_SERVICE_NOT_AVAILABLE ((HRESULT)0xC00E000BL)
  803. //
  804. // MessageId: MQ_ERROR_MACHINE_NOT_FOUND
  805. //
  806. // MessageText:
  807. //
  808. // The computer specified cannot be found.
  809. //
  810. #define MQ_ERROR_MACHINE_NOT_FOUND ((HRESULT)0xC00E000DL)
  811. //
  812. // MessageId: MQ_ERROR_ILLEGAL_SORT
  813. //
  814. // MessageText:
  815. //
  816. // The sort operation specified in MQLocateBegin is invalid (for example, there are duplicate columns).
  817. //
  818. #define MQ_ERROR_ILLEGAL_SORT ((HRESULT)0xC00E0010L)
  819. //
  820. // MessageId: MQ_ERROR_ILLEGAL_USER
  821. //
  822. // MessageText:
  823. //
  824. // The user specified is not a valid user.
  825. //
  826. #define MQ_ERROR_ILLEGAL_USER ((HRESULT)0xC00E0011L)
  827. //
  828. // MessageId: MQ_ERROR_NO_DS
  829. //
  830. // MessageText:
  831. //
  832. // A connection with Active Directory cannot be established. Verify that there are sufficient permissions to perform this operation.
  833. //
  834. #define MQ_ERROR_NO_DS ((HRESULT)0xC00E0013L)
  835. //
  836. // MessageId: MQ_ERROR_ILLEGAL_QUEUE_PATHNAME
  837. //
  838. // MessageText:
  839. //
  840. // The queue path name specified is invalid.
  841. //
  842. #define MQ_ERROR_ILLEGAL_QUEUE_PATHNAME ((HRESULT)0xC00E0014L)
  843. //
  844. // MessageId: MQ_ERROR_ILLEGAL_PROPERTY_VALUE
  845. //
  846. // MessageText:
  847. //
  848. // The property value specified is invalid.
  849. //
  850. #define MQ_ERROR_ILLEGAL_PROPERTY_VALUE ((HRESULT)0xC00E0018L)
  851. //
  852. // MessageId: MQ_ERROR_ILLEGAL_PROPERTY_VT
  853. //
  854. // MessageText:
  855. //
  856. // The VARTYPE value specified is invalid.
  857. //
  858. #define MQ_ERROR_ILLEGAL_PROPERTY_VT ((HRESULT)0xC00E0019L)
  859. //
  860. // MessageId: MQ_ERROR_BUFFER_OVERFLOW
  861. //
  862. // MessageText:
  863. //
  864. // The buffer supplied to MQReceiveMessage for message property retrieval
  865. // is too small. The message was not removed from the queue, but the part
  866. // of the message property that was in the buffer was copied.
  867. //
  868. #define MQ_ERROR_BUFFER_OVERFLOW ((HRESULT)0xC00E001AL)
  869. //
  870. // MessageId: MQ_ERROR_IO_TIMEOUT
  871. //
  872. // MessageText:
  873. //
  874. // The time specified for MQReceiveMessage to wait for the message elapsed.
  875. //
  876. #define MQ_ERROR_IO_TIMEOUT ((HRESULT)0xC00E001BL)
  877. //
  878. // MessageId: MQ_ERROR_ILLEGAL_CURSOR_ACTION
  879. //
  880. // MessageText:
  881. //
  882. // The MQ_ACTION_PEEK_NEXT value specified for MQReceiveMessage cannot be used with
  883. // the current cursor position.
  884. //
  885. #define MQ_ERROR_ILLEGAL_CURSOR_ACTION ((HRESULT)0xC00E001CL)
  886. //
  887. // MessageId: MQ_ERROR_MESSAGE_ALREADY_RECEIVED
  888. //
  889. // MessageText:
  890. //
  891. // The message at which the cursor is currently pointing was removed from
  892. // the queue by another process or by another call to MQReceiveMessage
  893. // without the use of this cursor.
  894. //
  895. #define MQ_ERROR_MESSAGE_ALREADY_RECEIVED ((HRESULT)0xC00E001DL)
  896. //
  897. // MessageId: MQ_ERROR_ILLEGAL_FORMATNAME
  898. //
  899. // MessageText:
  900. //
  901. // The format name specified is invalid.
  902. //
  903. #define MQ_ERROR_ILLEGAL_FORMATNAME ((HRESULT)0xC00E001EL)
  904. //
  905. // MessageId: MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL
  906. //
  907. // MessageText:
  908. //
  909. // The format name buffer supplied to the API was too small
  910. // to hold the format name.
  911. //
  912. #define MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL ((HRESULT)0xC00E001FL)
  913. //
  914. // MessageId: MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION
  915. //
  916. // MessageText:
  917. //
  918. // Operations of the type requested (for example, deleting a queue using a direct format name)
  919. // are not supported for the format name specified.
  920. //
  921. #define MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION ((HRESULT)0xC00E0020L)
  922. //
  923. // MessageId: MQ_ERROR_ILLEGAL_SECURITY_DESCRIPTOR
  924. //
  925. // MessageText:
  926. //
  927. // The specified security descriptor is invalid.
  928. //
  929. #define MQ_ERROR_ILLEGAL_SECURITY_DESCRIPTOR ((HRESULT)0xC00E0021L)
  930. //
  931. // MessageId: MQ_ERROR_SENDERID_BUFFER_TOO_SMALL
  932. //
  933. // MessageText:
  934. //
  935. // The size of the buffer for the user ID property is too small.
  936. //
  937. #define MQ_ERROR_SENDERID_BUFFER_TOO_SMALL ((HRESULT)0xC00E0022L)
  938. //
  939. // MessageId: MQ_ERROR_SECURITY_DESCRIPTOR_TOO_SMALL
  940. //
  941. // MessageText:
  942. //
  943. // The size of the buffer passed to MQGetQueueSecurity is too small.
  944. //
  945. #define MQ_ERROR_SECURITY_DESCRIPTOR_TOO_SMALL ((HRESULT)0xC00E0023L)
  946. //
  947. // MessageId: MQ_ERROR_CANNOT_IMPERSONATE_CLIENT
  948. //
  949. // MessageText:
  950. //
  951. // The security credentials cannot be verified because the RPC server
  952. // cannot impersonate the client application.
  953. //
  954. #define MQ_ERROR_CANNOT_IMPERSONATE_CLIENT ((HRESULT)0xC00E0024L)
  955. //
  956. // MessageId: MQ_ERROR_ACCESS_DENIED
  957. //
  958. // MessageText:
  959. //
  960. // Access is denied.
  961. //
  962. #define MQ_ERROR_ACCESS_DENIED ((HRESULT)0xC00E0025L)
  963. //
  964. // MessageId: MQ_ERROR_PRIVILEGE_NOT_HELD
  965. //
  966. // MessageText:
  967. //
  968. // The client does not have sufficient security privileges to perform the operation.
  969. //
  970. #define MQ_ERROR_PRIVILEGE_NOT_HELD ((HRESULT)0xC00E0026L)
  971. //
  972. // MessageId: MQ_ERROR_INSUFFICIENT_RESOURCES
  973. //
  974. // MessageText:
  975. //
  976. // There are insufficient resources to perform this operation.
  977. //
  978. #define MQ_ERROR_INSUFFICIENT_RESOURCES ((HRESULT)0xC00E0027L)
  979. //
  980. // MessageId: MQ_ERROR_USER_BUFFER_TOO_SMALL
  981. //
  982. // MessageText:
  983. //
  984. // The request failed because the user buffer is too small to hold the information returned.
  985. //
  986. #define MQ_ERROR_USER_BUFFER_TOO_SMALL ((HRESULT)0xC00E0028L)
  987. //
  988. // MessageId: MQ_ERROR_MESSAGE_STORAGE_FAILED
  989. //
  990. // MessageText:
  991. //
  992. // A recoverable or journal message could not be stored. The message was not sent.
  993. //
  994. #define MQ_ERROR_MESSAGE_STORAGE_FAILED ((HRESULT)0xC00E002AL)
  995. //
  996. // MessageId: MQ_ERROR_SENDER_CERT_BUFFER_TOO_SMALL
  997. //
  998. // MessageText:
  999. //
  1000. // The buffer for the user certificate property is too small.
  1001. //
  1002. #define MQ_ERROR_SENDER_CERT_BUFFER_TOO_SMALL ((HRESULT)0xC00E002BL)
  1003. //
  1004. // MessageId: MQ_ERROR_INVALID_CERTIFICATE
  1005. //
  1006. // MessageText:
  1007. //
  1008. // The user certificate is invalid.
  1009. //
  1010. #define MQ_ERROR_INVALID_CERTIFICATE ((HRESULT)0xC00E002CL)
  1011. //
  1012. // MessageId: MQ_ERROR_CORRUPTED_INTERNAL_CERTIFICATE
  1013. //
  1014. // MessageText:
  1015. //
  1016. // The internal Message Queuing certificate is corrupted.
  1017. //
  1018. #define MQ_ERROR_CORRUPTED_INTERNAL_CERTIFICATE ((HRESULT)0xC00E002DL)
  1019. //
  1020. // MessageId: MQ_ERROR_INTERNAL_USER_CERT_EXIST
  1021. //
  1022. // MessageText:
  1023. //
  1024. // An internal Message Queuing certificate already exists for this user.
  1025. //
  1026. #define MQ_ERROR_INTERNAL_USER_CERT_EXIST ((HRESULT)0xC00E002EL)
  1027. //
  1028. // MessageId: MQ_ERROR_NO_INTERNAL_USER_CERT
  1029. //
  1030. // MessageText:
  1031. //
  1032. // No internal Message Queuing certificate exists for the user.
  1033. //
  1034. #define MQ_ERROR_NO_INTERNAL_USER_CERT ((HRESULT)0xC00E002FL)
  1035. //
  1036. // MessageId: MQ_ERROR_CORRUPTED_SECURITY_DATA
  1037. //
  1038. // MessageText:
  1039. //
  1040. // A cryptographic function failed.
  1041. //
  1042. #define MQ_ERROR_CORRUPTED_SECURITY_DATA ((HRESULT)0xC00E0030L)
  1043. //
  1044. // MessageId: MQ_ERROR_CORRUPTED_PERSONAL_CERT_STORE
  1045. //
  1046. // MessageText:
  1047. //
  1048. // The personal certificate store is corrupted.
  1049. //
  1050. #define MQ_ERROR_CORRUPTED_PERSONAL_CERT_STORE ((HRESULT)0xC00E0031L)
  1051. //
  1052. // MessageId: MQ_ERROR_COMPUTER_DOES_NOT_SUPPORT_ENCRYPTION
  1053. //
  1054. // MessageText:
  1055. //
  1056. // The computer does not support encryption operations.
  1057. //
  1058. #define MQ_ERROR_COMPUTER_DOES_NOT_SUPPORT_ENCRYPTION ((HRESULT)0xC00E0033L)
  1059. //
  1060. // MessageId: MQ_ERROR_BAD_SECURITY_CONTEXT
  1061. //
  1062. // MessageText:
  1063. //
  1064. // The security context is invalid.
  1065. //
  1066. #define MQ_ERROR_BAD_SECURITY_CONTEXT ((HRESULT)0xC00E0035L)
  1067. //
  1068. // MessageId: MQ_ERROR_COULD_NOT_GET_USER_SID
  1069. //
  1070. // MessageText:
  1071. //
  1072. // The SID cannot be obtained from the thread token.
  1073. //
  1074. #define MQ_ERROR_COULD_NOT_GET_USER_SID ((HRESULT)0xC00E0036L)
  1075. //
  1076. // MessageId: MQ_ERROR_COULD_NOT_GET_ACCOUNT_INFO
  1077. //
  1078. // MessageText:
  1079. //
  1080. // The account information for the user cannot be obtained.
  1081. //
  1082. #define MQ_ERROR_COULD_NOT_GET_ACCOUNT_INFO ((HRESULT)0xC00E0037L)
  1083. //
  1084. // MessageId: MQ_ERROR_ILLEGAL_MQCOLUMNS
  1085. //
  1086. // MessageText:
  1087. //
  1088. // The MQCOLUMNS parameter is invalid.
  1089. //
  1090. #define MQ_ERROR_ILLEGAL_MQCOLUMNS ((HRESULT)0xC00E0038L)
  1091. //
  1092. // MessageId: MQ_ERROR_ILLEGAL_PROPID
  1093. //
  1094. // MessageText:
  1095. //
  1096. // A property identifier is invalid.
  1097. //
  1098. #define MQ_ERROR_ILLEGAL_PROPID ((HRESULT)0xC00E0039L)
  1099. //
  1100. // MessageId: MQ_ERROR_ILLEGAL_RELATION
  1101. //
  1102. // MessageText:
  1103. //
  1104. // A relationship parameter is invalid.
  1105. //
  1106. #define MQ_ERROR_ILLEGAL_RELATION ((HRESULT)0xC00E003AL)
  1107. //
  1108. // MessageId: MQ_ERROR_ILLEGAL_PROPERTY_SIZE
  1109. //
  1110. // MessageText:
  1111. //
  1112. // The size of the buffer for the message identifier or correlation identifier is invalid.
  1113. //
  1114. #define MQ_ERROR_ILLEGAL_PROPERTY_SIZE ((HRESULT)0xC00E003BL)
  1115. //
  1116. // MessageId: MQ_ERROR_ILLEGAL_RESTRICTION_PROPID
  1117. //
  1118. // MessageText:
  1119. //
  1120. // A property identifier specified in MQRESTRICTION is invalid.
  1121. //
  1122. #define MQ_ERROR_ILLEGAL_RESTRICTION_PROPID ((HRESULT)0xC00E003CL)
  1123. //
  1124. // MessageId: MQ_ERROR_ILLEGAL_MQQUEUEPROPS
  1125. //
  1126. // MessageText:
  1127. //
  1128. // Either the pointer to the MQQUEUEPROPS structure has a null value, or no properties are specified in it.
  1129. //
  1130. #define MQ_ERROR_ILLEGAL_MQQUEUEPROPS ((HRESULT)0xC00E003DL)
  1131. //
  1132. // MessageId: MQ_ERROR_PROPERTY_NOTALLOWED
  1133. //
  1134. // MessageText:
  1135. //
  1136. // The property identifier specified (for example, PROPID_Q_INSTANCE in MQSetQueueProperties)
  1137. // is invalid for the operation requested.
  1138. //
  1139. #define MQ_ERROR_PROPERTY_NOTALLOWED ((HRESULT)0xC00E003EL)
  1140. //
  1141. // MessageId: MQ_ERROR_INSUFFICIENT_PROPERTIES
  1142. //
  1143. // MessageText:
  1144. //
  1145. // Not all the properties required for the operation were specified
  1146. // for the input parameters.
  1147. //
  1148. #define MQ_ERROR_INSUFFICIENT_PROPERTIES ((HRESULT)0xC00E003FL)
  1149. //
  1150. // MessageId: MQ_ERROR_MACHINE_EXISTS
  1151. //
  1152. // MessageText:
  1153. //
  1154. // The MSMQ Configuration (msmq) object already exists in Active Directory.
  1155. //
  1156. #define MQ_ERROR_MACHINE_EXISTS ((HRESULT)0xC00E0040L)
  1157. //
  1158. // MessageId: MQ_ERROR_ILLEGAL_MQQMPROPS
  1159. //
  1160. // MessageText:
  1161. //
  1162. // Either the pointer to the MQQMROPS structure has a null value, or no properties are specified in it.
  1163. //
  1164. #define MQ_ERROR_ILLEGAL_MQQMPROPS ((HRESULT)0xC00E0041L)
  1165. //
  1166. // MessageId: MQ_ERROR_DS_IS_FULL
  1167. //
  1168. // MessageText:
  1169. //
  1170. // Obsolete, kept for backward compatibility
  1171. //
  1172. #define MQ_ERROR_DS_IS_FULL ((HRESULT)0xC00E0042L)
  1173. //
  1174. // MessageId: MQ_ERROR_DS_ERROR
  1175. //
  1176. // MessageText:
  1177. //
  1178. // There is an internal Active Directory error.
  1179. //
  1180. #define MQ_ERROR_DS_ERROR ((HRESULT)0xC00E0043L)
  1181. //
  1182. // MessageId: MQ_ERROR_INVALID_OWNER
  1183. //
  1184. // MessageText:
  1185. //
  1186. // The object owner is invalid (for example, MQCreateQueue failed because the QM
  1187. // object is invalid).
  1188. //
  1189. #define MQ_ERROR_INVALID_OWNER ((HRESULT)0xC00E0044L)
  1190. //
  1191. // MessageId: MQ_ERROR_UNSUPPORTED_ACCESS_MODE
  1192. //
  1193. // MessageText:
  1194. //
  1195. // The access mode specified is unsupported.
  1196. //
  1197. #define MQ_ERROR_UNSUPPORTED_ACCESS_MODE ((HRESULT)0xC00E0045L)
  1198. //
  1199. // MessageId: MQ_ERROR_RESULT_BUFFER_TOO_SMALL
  1200. //
  1201. // MessageText:
  1202. //
  1203. // The result buffer specified is too small.
  1204. //
  1205. #define MQ_ERROR_RESULT_BUFFER_TOO_SMALL ((HRESULT)0xC00E0046L)
  1206. //
  1207. // MessageId: MQ_ERROR_DELETE_CN_IN_USE
  1208. //
  1209. // MessageText:
  1210. //
  1211. // Obsolete, kept for backward compatibility
  1212. //
  1213. #define MQ_ERROR_DELETE_CN_IN_USE ((HRESULT)0xC00E0048L)
  1214. //
  1215. // MessageId: MQ_ERROR_NO_RESPONSE_FROM_OBJECT_SERVER
  1216. //
  1217. // MessageText:
  1218. //
  1219. // There was no response from the object owner.
  1220. //
  1221. #define MQ_ERROR_NO_RESPONSE_FROM_OBJECT_SERVER ((HRESULT)0xC00E0049L)
  1222. //
  1223. // MessageId: MQ_ERROR_OBJECT_SERVER_NOT_AVAILABLE
  1224. //
  1225. // MessageText:
  1226. //
  1227. // The object owner is not available.
  1228. //
  1229. #define MQ_ERROR_OBJECT_SERVER_NOT_AVAILABLE ((HRESULT)0xC00E004AL)
  1230. //
  1231. // MessageId: MQ_ERROR_QUEUE_NOT_AVAILABLE
  1232. //
  1233. // MessageText:
  1234. //
  1235. // An error occurred while reading from a queue located on a remote computer.
  1236. //
  1237. #define MQ_ERROR_QUEUE_NOT_AVAILABLE ((HRESULT)0xC00E004BL)
  1238. //
  1239. // MessageId: MQ_ERROR_DTC_CONNECT
  1240. //
  1241. // MessageText:
  1242. //
  1243. // A connection cannot be established with the Distributed Transaction Coordinator.
  1244. //
  1245. #define MQ_ERROR_DTC_CONNECT ((HRESULT)0xC00E004CL)
  1246. //
  1247. // MessageId: MQ_ERROR_TRANSACTION_IMPORT
  1248. //
  1249. // MessageText:
  1250. //
  1251. // The transaction specified cannot be imported.
  1252. //
  1253. #define MQ_ERROR_TRANSACTION_IMPORT ((HRESULT)0xC00E004EL)
  1254. //
  1255. // MessageId: MQ_ERROR_TRANSACTION_USAGE
  1256. //
  1257. // MessageText:
  1258. //
  1259. // An attempted action cannot be performed within a transaction.
  1260. //
  1261. #define MQ_ERROR_TRANSACTION_USAGE ((HRESULT)0xC00E0050L)
  1262. //
  1263. // MessageId: MQ_ERROR_TRANSACTION_SEQUENCE
  1264. //
  1265. // MessageText:
  1266. //
  1267. // The transaction's operation sequence is incorrect.
  1268. //
  1269. #define MQ_ERROR_TRANSACTION_SEQUENCE ((HRESULT)0xC00E0051L)
  1270. //
  1271. // MessageId: MQ_ERROR_MISSING_CONNECTOR_TYPE
  1272. //
  1273. // MessageText:
  1274. //
  1275. // The connector type message property is not specified. This property is required for sending an acknowledgment message or a secure message.
  1276. //
  1277. #define MQ_ERROR_MISSING_CONNECTOR_TYPE ((HRESULT)0xC00E0055L)
  1278. //
  1279. // MessageId: MQ_ERROR_STALE_HANDLE
  1280. //
  1281. // MessageText:
  1282. //
  1283. // The Message Queuing service was restarted. Any open queue handles should be closed.
  1284. //
  1285. #define MQ_ERROR_STALE_HANDLE ((HRESULT)0xC00E0056L)
  1286. //
  1287. // MessageId: MQ_ERROR_TRANSACTION_ENLIST
  1288. //
  1289. // MessageText:
  1290. //
  1291. // The transaction specified cannot be enlisted.
  1292. //
  1293. #define MQ_ERROR_TRANSACTION_ENLIST ((HRESULT)0xC00E0058L)
  1294. //
  1295. // MessageId: MQ_ERROR_QUEUE_DELETED
  1296. //
  1297. // MessageText:
  1298. //
  1299. // The queue was deleted. Messages cannot be received anymore using this
  1300. // queue handle. The handle should be closed.
  1301. //
  1302. #define MQ_ERROR_QUEUE_DELETED ((HRESULT)0xC00E005AL)
  1303. //
  1304. // MessageId: MQ_ERROR_ILLEGAL_CONTEXT
  1305. //
  1306. // MessageText:
  1307. //
  1308. // The context parameter for MQLocateBegin is invalid.
  1309. //
  1310. #define MQ_ERROR_ILLEGAL_CONTEXT ((HRESULT)0xC00E005BL)
  1311. //
  1312. // MessageId: MQ_ERROR_ILLEGAL_SORT_PROPID
  1313. //
  1314. // MessageText:
  1315. //
  1316. // An invalid property identifier is specified in MQSORTSET.
  1317. //
  1318. #define MQ_ERROR_ILLEGAL_SORT_PROPID ((HRESULT)0xC00E005CL)
  1319. //
  1320. // MessageId: MQ_ERROR_LABEL_TOO_LONG
  1321. //
  1322. // MessageText:
  1323. //
  1324. // The message label is too long. Its length should be less than or equal to MQ_MAX_MSG_LABEL_LEN.
  1325. //
  1326. #define MQ_ERROR_LABEL_TOO_LONG ((HRESULT)0xC00E005DL)
  1327. //
  1328. // MessageId: MQ_ERROR_LABEL_BUFFER_TOO_SMALL
  1329. //
  1330. // MessageText:
  1331. //
  1332. // The label buffer supplied to the API is too small.
  1333. //
  1334. #define MQ_ERROR_LABEL_BUFFER_TOO_SMALL ((HRESULT)0xC00E005EL)
  1335. //
  1336. // MessageId: MQ_ERROR_MQIS_SERVER_EMPTY
  1337. //
  1338. // MessageText:
  1339. //
  1340. // Obsolete, kept for backward compatibility
  1341. //
  1342. #define MQ_ERROR_MQIS_SERVER_EMPTY ((HRESULT)0xC00E005FL)
  1343. //
  1344. // MessageId: MQ_ERROR_MQIS_READONLY_MODE
  1345. //
  1346. // MessageText:
  1347. //
  1348. // Obsolete, kept for backward compatibility
  1349. //
  1350. #define MQ_ERROR_MQIS_READONLY_MODE ((HRESULT)0xC00E0060L)
  1351. //
  1352. // MessageId: MQ_ERROR_SYMM_KEY_BUFFER_TOO_SMALL
  1353. //
  1354. // MessageText:
  1355. //
  1356. // The buffer passed for the symmetric key is too small.
  1357. //
  1358. #define MQ_ERROR_SYMM_KEY_BUFFER_TOO_SMALL ((HRESULT)0xC00E0061L)
  1359. //
  1360. // MessageId: MQ_ERROR_SIGNATURE_BUFFER_TOO_SMALL
  1361. //
  1362. // MessageText:
  1363. //
  1364. // The buffer passed for the signature property is too small.
  1365. //
  1366. #define MQ_ERROR_SIGNATURE_BUFFER_TOO_SMALL ((HRESULT)0xC00E0062L)
  1367. //
  1368. // MessageId: MQ_ERROR_PROV_NAME_BUFFER_TOO_SMALL
  1369. //
  1370. // MessageText:
  1371. //
  1372. // The buffer passed for the provider name property is too small.
  1373. //
  1374. #define MQ_ERROR_PROV_NAME_BUFFER_TOO_SMALL ((HRESULT)0xC00E0063L)
  1375. //
  1376. // MessageId: MQ_ERROR_ILLEGAL_OPERATION
  1377. //
  1378. // MessageText:
  1379. //
  1380. // The operation is invalid for a foreign message queuing system.
  1381. //
  1382. #define MQ_ERROR_ILLEGAL_OPERATION ((HRESULT)0xC00E0064L)
  1383. //
  1384. // MessageId: MQ_ERROR_WRITE_NOT_ALLOWED
  1385. //
  1386. // MessageText:
  1387. //
  1388. // Obsolete; another MQIS server is being installed. Write operations to the database are not allowed at this stage.
  1389. //
  1390. #define MQ_ERROR_WRITE_NOT_ALLOWED ((HRESULT)0xC00E0065L)
  1391. //
  1392. // MessageId: MQ_ERROR_WKS_CANT_SERVE_CLIENT
  1393. //
  1394. // MessageText:
  1395. //
  1396. // Independent clients cannot support dependent clients. A Message Queuing server is required.
  1397. //
  1398. #define MQ_ERROR_WKS_CANT_SERVE_CLIENT ((HRESULT)0xC00E0066L)
  1399. //
  1400. // MessageId: MQ_ERROR_DEPEND_WKS_LICENSE_OVERFLOW
  1401. //
  1402. // MessageText:
  1403. //
  1404. // The number of dependent clients served by the Message Queuing server reached its upper limit.
  1405. //
  1406. #define MQ_ERROR_DEPEND_WKS_LICENSE_OVERFLOW ((HRESULT)0xC00E0067L)
  1407. //
  1408. // MessageId: MQ_CORRUPTED_QUEUE_WAS_DELETED
  1409. //
  1410. // MessageText:
  1411. //
  1412. // The file %1 for the queue %2 in the Lqs folder was deleted because it was corrupted.
  1413. //
  1414. #define MQ_CORRUPTED_QUEUE_WAS_DELETED ((HRESULT)0xC00E0068L)
  1415. //
  1416. // MessageId: MQ_ERROR_REMOTE_MACHINE_NOT_AVAILABLE
  1417. //
  1418. // MessageText:
  1419. //
  1420. // The remote computer is not available.
  1421. //
  1422. #define MQ_ERROR_REMOTE_MACHINE_NOT_AVAILABLE ((HRESULT)0xC00E0069L)
  1423. //
  1424. // MessageId: MQ_ERROR_UNSUPPORTED_OPERATION
  1425. //
  1426. // MessageText:
  1427. //
  1428. // This operation is not supported for Message Queuing installed in workgroup mode.
  1429. //
  1430. #define MQ_ERROR_UNSUPPORTED_OPERATION ((HRESULT)0xC00E006AL)
  1431. //
  1432. // MessageId: MQ_ERROR_ENCRYPTION_PROVIDER_NOT_SUPPORTED
  1433. //
  1434. // MessageText:
  1435. //
  1436. // The cryptographic service provider %1 is not supported by Message Queuing.
  1437. //
  1438. #define MQ_ERROR_ENCRYPTION_PROVIDER_NOT_SUPPORTED ((HRESULT)0xC00E006BL)
  1439. //
  1440. // MessageId: MQ_ERROR_CANNOT_SET_CRYPTO_SEC_DESCR
  1441. //
  1442. // MessageText:
  1443. //
  1444. // The security descriptors for the cryptographic keys cannot be set.
  1445. //
  1446. #define MQ_ERROR_CANNOT_SET_CRYPTO_SEC_DESCR ((HRESULT)0xC00E006CL)
  1447. //
  1448. // MessageId: MQ_ERROR_CERTIFICATE_NOT_PROVIDED
  1449. //
  1450. // MessageText:
  1451. //
  1452. // A user attempted to send an authenticated message without a certificate.
  1453. //
  1454. #define MQ_ERROR_CERTIFICATE_NOT_PROVIDED ((HRESULT)0xC00E006DL)
  1455. //
  1456. // MessageId: MQ_ERROR_Q_DNS_PROPERTY_NOT_SUPPORTED
  1457. //
  1458. // MessageText:
  1459. //
  1460. // The column PROPID_Q_PATHNAME_DNS is not supported for the MQLocateBegin API.
  1461. //
  1462. #define MQ_ERROR_Q_DNS_PROPERTY_NOT_SUPPORTED ((HRESULT)0xC00E006EL)
  1463. //
  1464. // MessageId: MQ_ERROR_CANNOT_CREATE_CERT_STORE
  1465. //
  1466. // MessageText:
  1467. //
  1468. // A certificate store cannot be created for the internal certificate.
  1469. //
  1470. #define MQ_ERROR_CANNOT_CREATE_CERT_STORE ((HRESULT)0xC00E006FL)
  1471. //
  1472. // MessageId: MQ_ERROR_CANNOT_OPEN_CERT_STORE
  1473. //
  1474. // MessageText:
  1475. //
  1476. // The certificate store for the internal certificate cannot be opened.
  1477. //
  1478. #define MQ_ERROR_CANNOT_OPEN_CERT_STORE ((HRESULT)0xC00E0070L)
  1479. //
  1480. // MessageId: MQ_ERROR_ILLEGAL_ENTERPRISE_OPERATION
  1481. //
  1482. // MessageText:
  1483. //
  1484. // This operation is invalid for an MsmqServices object.
  1485. //
  1486. #define MQ_ERROR_ILLEGAL_ENTERPRISE_OPERATION ((HRESULT)0xC00E0071L)
  1487. //
  1488. // MessageId: MQ_ERROR_CANNOT_GRANT_ADD_GUID
  1489. //
  1490. // MessageText:
  1491. //
  1492. // The Add GUID permission cannot be granted to the current user.
  1493. //
  1494. #define MQ_ERROR_CANNOT_GRANT_ADD_GUID ((HRESULT)0xC00E0072L)
  1495. //
  1496. // MessageId: MQ_ERROR_CANNOT_LOAD_MSMQOCM
  1497. //
  1498. // MessageText:
  1499. //
  1500. // Obsolete: The dynamic-link library Msmqocm.dll cannot be loaded.
  1501. //
  1502. #define MQ_ERROR_CANNOT_LOAD_MSMQOCM ((HRESULT)0xC00E0073L)
  1503. //
  1504. // MessageId: MQ_ERROR_NO_ENTRY_POINT_MSMQOCM
  1505. //
  1506. // MessageText:
  1507. //
  1508. // An entry point cannot be located in Msmqocm.dll.
  1509. //
  1510. #define MQ_ERROR_NO_ENTRY_POINT_MSMQOCM ((HRESULT)0xC00E0074L)
  1511. //
  1512. // MessageId: MQ_ERROR_NO_MSMQ_SERVERS_ON_DC
  1513. //
  1514. // MessageText:
  1515. //
  1516. // Message Queuing servers cannot be found on domain controllers.
  1517. //
  1518. #define MQ_ERROR_NO_MSMQ_SERVERS_ON_DC ((HRESULT)0xC00E0075L)
  1519. //
  1520. // MessageId: MQ_ERROR_CANNOT_JOIN_DOMAIN
  1521. //
  1522. // MessageText:
  1523. //
  1524. // The computer joined the domain, but Message Queuing will continue to run in workgroup mode because it failed to register itself in Active Directory.
  1525. //
  1526. #define MQ_ERROR_CANNOT_JOIN_DOMAIN ((HRESULT)0xC00E0076L)
  1527. //
  1528. // MessageId: MQ_ERROR_CANNOT_CREATE_ON_GC
  1529. //
  1530. // MessageText:
  1531. //
  1532. // The object was not created on the Global Catalog server specified.
  1533. //
  1534. #define MQ_ERROR_CANNOT_CREATE_ON_GC ((HRESULT)0xC00E0077L)
  1535. //
  1536. // MessageId: MQ_ERROR_GUID_NOT_MATCHING
  1537. //
  1538. // MessageText:
  1539. //
  1540. // Obsolete, kept for backward compatibility
  1541. //
  1542. #define MQ_ERROR_GUID_NOT_MATCHING ((HRESULT)0xC00E0078L)
  1543. //
  1544. // MessageId: MQ_ERROR_PUBLIC_KEY_NOT_FOUND
  1545. //
  1546. // MessageText:
  1547. //
  1548. // The public key for the computer %1 cannot be found.
  1549. //
  1550. #define MQ_ERROR_PUBLIC_KEY_NOT_FOUND ((HRESULT)0xC00E0079L)
  1551. //
  1552. // MessageId: MQ_ERROR_PUBLIC_KEY_DOES_NOT_EXIST
  1553. //
  1554. // MessageText:
  1555. //
  1556. // The public key for the computer %1 does not exist.
  1557. //
  1558. #define MQ_ERROR_PUBLIC_KEY_DOES_NOT_EXIST ((HRESULT)0xC00E007AL)
  1559. //
  1560. // MessageId: MQ_ERROR_ILLEGAL_MQPRIVATEPROPS
  1561. //
  1562. // MessageText:
  1563. //
  1564. // The parameters in MQPRIVATEPROPS are invalid. Either the pointer to the MQPRIVATEPROPS structure has a null value, or no properties are specified in it.
  1565. //
  1566. #define MQ_ERROR_ILLEGAL_MQPRIVATEPROPS ((HRESULT)0xC00E007BL)
  1567. //
  1568. // MessageId: MQ_ERROR_NO_GC_IN_DOMAIN
  1569. //
  1570. // MessageText:
  1571. //
  1572. // Global Catalog servers cannot be found in the domain specified.
  1573. //
  1574. #define MQ_ERROR_NO_GC_IN_DOMAIN ((HRESULT)0xC00E007CL)
  1575. //
  1576. // MessageId: MQ_ERROR_NO_MSMQ_SERVERS_ON_GC
  1577. //
  1578. // MessageText:
  1579. //
  1580. // No Message Queuing servers were found on Global Catalog servers.
  1581. //
  1582. #define MQ_ERROR_NO_MSMQ_SERVERS_ON_GC ((HRESULT)0xC00E007DL)
  1583. //
  1584. // MessageId: MQ_ERROR_CANNOT_GET_DN
  1585. //
  1586. // MessageText:
  1587. //
  1588. // Obsolete, kept for backward compatibility
  1589. //
  1590. #define MQ_ERROR_CANNOT_GET_DN ((HRESULT)0xC00E007EL)
  1591. //
  1592. // MessageId: MQ_ERROR_CANNOT_HASH_DATA_EX
  1593. //
  1594. // MessageText:
  1595. //
  1596. // Data for an authenticated message cannot be hashed.
  1597. //
  1598. #define MQ_ERROR_CANNOT_HASH_DATA_EX ((HRESULT)0xC00E007FL)
  1599. //
  1600. // MessageId: MQ_ERROR_CANNOT_SIGN_DATA_EX
  1601. //
  1602. // MessageText:
  1603. //
  1604. // Data cannot be signed before sending an authenticated message.
  1605. //
  1606. #define MQ_ERROR_CANNOT_SIGN_DATA_EX ((HRESULT)0xC00E0080L)
  1607. //
  1608. // MessageId: MQ_ERROR_CANNOT_CREATE_HASH_EX
  1609. //
  1610. // MessageText:
  1611. //
  1612. // A hash object cannot be created for an authenticated message.
  1613. //
  1614. #define MQ_ERROR_CANNOT_CREATE_HASH_EX ((HRESULT)0xC00E0081L)
  1615. //
  1616. // MessageId: MQ_ERROR_FAIL_VERIFY_SIGNATURE_EX
  1617. //
  1618. // MessageText:
  1619. //
  1620. // The signature of the message received is not valid.
  1621. //
  1622. #define MQ_ERROR_FAIL_VERIFY_SIGNATURE_EX ((HRESULT)0xC00E0082L)
  1623. //
  1624. // MessageId: MQ_ERROR_CANNOT_DELETE_PSC_OBJECTS
  1625. //
  1626. // MessageText:
  1627. //
  1628. // The object that will be deleted is owned by a primary site controller. The operation cannot be performed.
  1629. //
  1630. #define MQ_ERROR_CANNOT_DELETE_PSC_OBJECTS ((HRESULT)0xC00E0083L)
  1631. //
  1632. // MessageId: MQ_ERROR_NO_MQUSER_OU
  1633. //
  1634. // MessageText:
  1635. //
  1636. // There is no MSMQ Users organizational unit object in Active Directory for the domain. Please create one manually.
  1637. //
  1638. #define MQ_ERROR_NO_MQUSER_OU ((HRESULT)0xC00E0084L)
  1639. //
  1640. // MessageId: MQ_ERROR_CANNOT_LOAD_MQAD
  1641. //
  1642. // MessageText:
  1643. //
  1644. // The dynamic-link library Mqad.dll cannot be loaded.
  1645. //
  1646. #define MQ_ERROR_CANNOT_LOAD_MQAD ((HRESULT)0xC00E0085L)
  1647. //
  1648. // MessageId: MQ_ERROR_CANNOT_LOAD_MQDSSRV
  1649. //
  1650. // MessageText:
  1651. //
  1652. // Obsolete, kept for backward compatibility
  1653. //
  1654. #define MQ_ERROR_CANNOT_LOAD_MQDSSRV ((HRESULT)0xC00E0086L)
  1655. //
  1656. // MessageId: MQ_ERROR_PROPERTIES_CONFLICT
  1657. //
  1658. // MessageText:
  1659. //
  1660. // Two or more of the properties passed cannot co-exist.
  1661. // For example, you cannot set both PROPID_M_RESP_QUEUE and PROPID_M_RESP_FORMAT_NAME when sending a message.
  1662. //
  1663. #define MQ_ERROR_PROPERTIES_CONFLICT ((HRESULT)0xC00E0087L)
  1664. //
  1665. // MessageId: MQ_ERROR_MESSAGE_NOT_FOUND
  1666. //
  1667. // MessageText:
  1668. //
  1669. // The message does not exist or was removed from the queue.
  1670. //
  1671. #define MQ_ERROR_MESSAGE_NOT_FOUND ((HRESULT)0xC00E0088L)
  1672. //
  1673. // MessageId: MQ_ERROR_CANT_RESOLVE_SITES
  1674. //
  1675. // MessageText:
  1676. //
  1677. // The sites where the computer resides cannot be resolved. Check that the subnets in your network are configured correctly in Active Directory and that each site is configured with the appropriate subnet.
  1678. //
  1679. #define MQ_ERROR_CANT_RESOLVE_SITES ((HRESULT)0xC00E0089L)
  1680. //
  1681. // MessageId: MQ_ERROR_NOT_SUPPORTED_BY_DEPENDENT_CLIENTS
  1682. //
  1683. // MessageText:
  1684. //
  1685. // This operation is not supported by dependent clients.
  1686. //
  1687. #define MQ_ERROR_NOT_SUPPORTED_BY_DEPENDENT_CLIENTS ((HRESULT)0xC00E008AL)
  1688. //
  1689. // MessageId: MQ_ERROR_OPERATION_NOT_SUPPORTED_BY_REMOTE_COMPUTER
  1690. //
  1691. // MessageText:
  1692. //
  1693. // This operation is not supported by the remote Message Queuing service. For example, MQReceiveMessageByLookupId is not supported by MSMQ 1.0/2.0.
  1694. //
  1695. #define MQ_ERROR_OPERATION_NOT_SUPPORTED_BY_REMOTE_COMPUTER ((HRESULT)0xC00E008BL)
  1696. //
  1697. // MessageId: MQ_ERROR_NOT_A_CORRECT_OBJECT_CLASS
  1698. //
  1699. // MessageText:
  1700. //
  1701. // The object whose properties are being retrieved from Active Directory does not belong to the class requested.
  1702. //
  1703. #define MQ_ERROR_NOT_A_CORRECT_OBJECT_CLASS ((HRESULT)0xC00E008CL)
  1704. //
  1705. // MessageId: MQ_ERROR_MULTI_SORT_KEYS
  1706. //
  1707. // MessageText:
  1708. //
  1709. // The value of cCol in MQSORTSET cannot be greater than 1. Active Directory supports only a single sort key.
  1710. //
  1711. #define MQ_ERROR_MULTI_SORT_KEYS ((HRESULT)0xC00E008DL)
  1712. //
  1713. // MessageId: MQ_ERROR_GC_NEEDED
  1714. //
  1715. // MessageText:
  1716. //
  1717. // An MSMQ Configuration (msmq) object with the GUID supplied cannot be created. By default, a Windows Server 2003 forest does not support adding an object with a supplied GUID.
  1718. //
  1719. #define MQ_ERROR_GC_NEEDED ((HRESULT)0xC00E008EL)
  1720. //
  1721. // MessageId: MQ_ERROR_DS_BIND_ROOT_FOREST
  1722. //
  1723. // MessageText:
  1724. //
  1725. // Binding to the forest root failed. This error usually indicates a problem in the DNS configuration.
  1726. //
  1727. #define MQ_ERROR_DS_BIND_ROOT_FOREST ((HRESULT)0xC00E008FL)
  1728. //
  1729. // MessageId: MQ_ERROR_DS_LOCAL_USER
  1730. //
  1731. // MessageText:
  1732. //
  1733. // A local user is authenticated as an anonymous user and cannot access Active Directory. You need to log on as a domain user to access Active Directory.
  1734. //
  1735. #define MQ_ERROR_DS_LOCAL_USER ((HRESULT)0xC00E0090L)
  1736. //
  1737. // MessageId: MQ_ERROR_Q_ADS_PROPERTY_NOT_SUPPORTED
  1738. //
  1739. // MessageText:
  1740. //
  1741. // The column PROPID_Q_ADS_PATH is not supported for the MQLocateBegin API.
  1742. //
  1743. #define MQ_ERROR_Q_ADS_PROPERTY_NOT_SUPPORTED ((HRESULT)0xC00E0091L)
  1744. //
  1745. // MessageId: MQ_ERROR_BAD_XML_FORMAT
  1746. //
  1747. // MessageText:
  1748. //
  1749. // The given property is not a valid XML document.
  1750. //
  1751. #define MQ_ERROR_BAD_XML_FORMAT ((HRESULT)0xC00E0092L)
  1752. //
  1753. // MessageId: MQ_ERROR_UNSUPPORTED_CLASS
  1754. //
  1755. // MessageText:
  1756. //
  1757. // The Active Directory object specified is not an instance of a supported class.
  1758. //
  1759. #define MQ_ERROR_UNSUPPORTED_CLASS ((HRESULT)0xC00E0093L)
  1760. //
  1761. // MessageId: MQ_ERROR_UNINITIALIZED_OBJECT
  1762. //
  1763. // MessageText:
  1764. //
  1765. // The MSMQManagement object must be initialized before it is used.
  1766. //
  1767. #define MQ_ERROR_UNINITIALIZED_OBJECT ((HRESULT)0xC00E0094L)
  1768. //
  1769. // MessageId: MQ_ERROR_CANNOT_CREATE_PSC_OBJECTS
  1770. //
  1771. // MessageText:
  1772. //
  1773. // The object that will be created should be owned by a primary site controller. The operation cannot be performed.
  1774. //
  1775. #define MQ_ERROR_CANNOT_CREATE_PSC_OBJECTS ((HRESULT)0xC00E0095L)
  1776. //
  1777. // MessageId: MQ_ERROR_CANNOT_UPDATE_PSC_OBJECTS
  1778. //
  1779. // MessageText:
  1780. //
  1781. // The object that will be updated is owned by a primary site controller. The operation cannot be performed.
  1782. //
  1783. #define MQ_ERROR_CANNOT_UPDATE_PSC_OBJECTS ((HRESULT)0xC00E0096L)
  1784. //+-----------------------------------------
  1785. //
  1786. // Flags for MQRegisterCertificate()
  1787. //
  1788. //+-----------------------------------------
  1789. #define MQCERT_REGISTER_ALWAYS 0x01
  1790. #define MQCERT_REGISTER_IF_NOT_EXIST 0x02
  1791. //********************************************************************
  1792. // SECURITY Flags (Queue access control)
  1793. //********************************************************************
  1794. #define MQSEC_DELETE_MESSAGE 0x1
  1795. #define MQSEC_PEEK_MESSAGE 0x2
  1796. #define MQSEC_WRITE_MESSAGE 0x4
  1797. #define MQSEC_DELETE_JOURNAL_MESSAGE 0x8
  1798. #define MQSEC_SET_QUEUE_PROPERTIES 0x10
  1799. #define MQSEC_GET_QUEUE_PROPERTIES 0x20
  1800. #define MQSEC_DELETE_QUEUE DELETE
  1801. #define MQSEC_GET_QUEUE_PERMISSIONS READ_CONTROL
  1802. #define MQSEC_CHANGE_QUEUE_PERMISSIONS WRITE_DAC
  1803. #define MQSEC_TAKE_QUEUE_OWNERSHIP WRITE_OWNER
  1804. #define MQSEC_RECEIVE_MESSAGE (MQSEC_DELETE_MESSAGE | \
  1805. MQSEC_PEEK_MESSAGE)
  1806. #define MQSEC_RECEIVE_JOURNAL_MESSAGE (MQSEC_DELETE_JOURNAL_MESSAGE | \
  1807. MQSEC_PEEK_MESSAGE)
  1808. #define MQSEC_QUEUE_GENERIC_READ (MQSEC_GET_QUEUE_PROPERTIES | \
  1809. MQSEC_GET_QUEUE_PERMISSIONS | \
  1810. MQSEC_RECEIVE_MESSAGE | \
  1811. MQSEC_RECEIVE_JOURNAL_MESSAGE)
  1812. #define MQSEC_QUEUE_GENERIC_WRITE (MQSEC_GET_QUEUE_PROPERTIES | \
  1813. MQSEC_GET_QUEUE_PERMISSIONS | \
  1814. MQSEC_WRITE_MESSAGE)
  1815. #define MQSEC_QUEUE_GENERIC_EXECUTE 0
  1816. #define MQSEC_QUEUE_GENERIC_ALL (MQSEC_RECEIVE_MESSAGE | \
  1817. MQSEC_RECEIVE_JOURNAL_MESSAGE | \
  1818. MQSEC_WRITE_MESSAGE | \
  1819. MQSEC_SET_QUEUE_PROPERTIES | \
  1820. MQSEC_GET_QUEUE_PROPERTIES | \
  1821. MQSEC_DELETE_QUEUE | \
  1822. MQSEC_GET_QUEUE_PERMISSIONS | \
  1823. MQSEC_CHANGE_QUEUE_PERMISSIONS | \
  1824. MQSEC_TAKE_QUEUE_OWNERSHIP)
  1825. #ifdef __cplusplus
  1826. extern "C"
  1827. {
  1828. #endif
  1829. //********************************************************************
  1830. // RECEIVE CALLBACK
  1831. //********************************************************************
  1832. typedef
  1833. VOID
  1834. (APIENTRY *PMQRECEIVECALLBACK)(
  1835. HRESULT hrStatus,
  1836. QUEUEHANDLE hSource,
  1837. DWORD dwTimeout,
  1838. DWORD dwAction,
  1839. MQMSGPROPS* pMessageProps,
  1840. LPOVERLAPPED lpOverlapped,
  1841. HANDLE hCursor
  1842. );
  1843. //********************************************************************
  1844. // MSMQ API
  1845. //********************************************************************
  1846. HRESULT
  1847. APIENTRY
  1848. MQCreateQueue(
  1849. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  1850. IN OUT MQQUEUEPROPS* pQueueProps,
  1851. OUT LPWSTR lpwcsFormatName,
  1852. IN OUT LPDWORD lpdwFormatNameLength
  1853. );
  1854. HRESULT
  1855. APIENTRY
  1856. MQDeleteQueue(
  1857. IN LPCWSTR lpwcsFormatName
  1858. );
  1859. HRESULT
  1860. APIENTRY
  1861. MQLocateBegin(
  1862. IN LPCWSTR lpwcsContext,
  1863. IN MQRESTRICTION* pRestriction,
  1864. IN MQCOLUMNSET* pColumns,
  1865. IN MQSORTSET* pSort,
  1866. OUT PHANDLE phEnum
  1867. );
  1868. HRESULT
  1869. APIENTRY
  1870. MQLocateNext(
  1871. IN HANDLE hEnum,
  1872. IN OUT DWORD* pcProps,
  1873. OUT MQPROPVARIANT aPropVar[]
  1874. );
  1875. HRESULT
  1876. APIENTRY
  1877. MQLocateEnd(
  1878. IN HANDLE hEnum
  1879. );
  1880. HRESULT
  1881. APIENTRY
  1882. MQOpenQueue(
  1883. IN LPCWSTR lpwcsFormatName,
  1884. IN DWORD dwAccess,
  1885. IN DWORD dwShareMode,
  1886. OUT QUEUEHANDLE* phQueue
  1887. );
  1888. HRESULT
  1889. APIENTRY
  1890. MQSendMessage(
  1891. IN QUEUEHANDLE hDestinationQueue,
  1892. IN MQMSGPROPS* pMessageProps,
  1893. IN ITransaction *pTransaction
  1894. );
  1895. HRESULT
  1896. APIENTRY
  1897. MQReceiveMessage(
  1898. IN QUEUEHANDLE hSource,
  1899. IN DWORD dwTimeout,
  1900. IN DWORD dwAction,
  1901. IN OUT MQMSGPROPS* pMessageProps,
  1902. IN OUT LPOVERLAPPED lpOverlapped,
  1903. IN PMQRECEIVECALLBACK fnReceiveCallback,
  1904. IN HANDLE hCursor,
  1905. IN ITransaction* pTransaction
  1906. );
  1907. #if(_WIN32_WINNT >= 0x0501)
  1908. HRESULT
  1909. APIENTRY
  1910. MQReceiveMessageByLookupId(
  1911. IN QUEUEHANDLE hSource,
  1912. IN ULONGLONG ullLookupId,
  1913. IN DWORD dwLookupAction,
  1914. IN OUT MQMSGPROPS* pMessageProps,
  1915. IN OUT LPOVERLAPPED lpOverlapped,
  1916. IN PMQRECEIVECALLBACK fnReceiveCallback,
  1917. IN ITransaction *pTransaction
  1918. );
  1919. #endif
  1920. HRESULT
  1921. APIENTRY
  1922. MQCreateCursor(
  1923. IN QUEUEHANDLE hQueue,
  1924. OUT PHANDLE phCursor
  1925. );
  1926. HRESULT
  1927. APIENTRY
  1928. MQCloseCursor(
  1929. IN HANDLE hCursor
  1930. );
  1931. HRESULT
  1932. APIENTRY
  1933. MQCloseQueue(
  1934. IN QUEUEHANDLE hQueue
  1935. );
  1936. HRESULT
  1937. APIENTRY
  1938. MQSetQueueProperties(
  1939. IN LPCWSTR lpwcsFormatName,
  1940. IN MQQUEUEPROPS* pQueueProps
  1941. );
  1942. HRESULT
  1943. APIENTRY
  1944. MQGetQueueProperties(
  1945. IN LPCWSTR lpwcsFormatName,
  1946. OUT MQQUEUEPROPS* pQueueProps
  1947. );
  1948. HRESULT
  1949. APIENTRY
  1950. MQGetQueueSecurity(
  1951. IN LPCWSTR lpwcsFormatName,
  1952. IN SECURITY_INFORMATION RequestedInformation,
  1953. OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
  1954. IN DWORD nLength,
  1955. OUT LPDWORD lpnLengthNeeded
  1956. );
  1957. HRESULT
  1958. APIENTRY
  1959. MQSetQueueSecurity(
  1960. IN LPCWSTR lpwcsFormatName,
  1961. IN SECURITY_INFORMATION SecurityInformation,
  1962. IN PSECURITY_DESCRIPTOR pSecurityDescriptor
  1963. );
  1964. HRESULT
  1965. APIENTRY
  1966. MQPathNameToFormatName(
  1967. IN LPCWSTR lpwcsPathName,
  1968. OUT LPWSTR lpwcsFormatName,
  1969. IN OUT LPDWORD lpdwFormatNameLength
  1970. );
  1971. HRESULT
  1972. APIENTRY
  1973. MQHandleToFormatName(
  1974. IN QUEUEHANDLE hQueue,
  1975. OUT LPWSTR lpwcsFormatName,
  1976. IN OUT LPDWORD lpdwFormatNameLength
  1977. );
  1978. HRESULT
  1979. APIENTRY
  1980. MQInstanceToFormatName(
  1981. IN GUID* pGuid,
  1982. OUT LPWSTR lpwcsFormatName,
  1983. IN OUT LPDWORD lpdwFormatNameLength
  1984. );
  1985. #if(_WIN32_WINNT >= 0x0501)
  1986. HRESULT
  1987. APIENTRY
  1988. MQADsPathToFormatName(
  1989. IN LPCWSTR lpwcsADsPath,
  1990. OUT LPWSTR lpwcsFormatName,
  1991. IN OUT LPDWORD lpdwFormatNameLength
  1992. );
  1993. #endif
  1994. VOID
  1995. APIENTRY
  1996. MQFreeMemory(
  1997. IN PVOID pvMemory
  1998. );
  1999. HRESULT
  2000. APIENTRY
  2001. MQGetMachineProperties(
  2002. IN LPCWSTR lpwcsMachineName,
  2003. IN const GUID* pguidMachineId,
  2004. IN OUT MQQMPROPS* pQMProps
  2005. );
  2006. HRESULT
  2007. APIENTRY
  2008. MQGetSecurityContext(
  2009. IN PVOID lpCertBuffer,
  2010. IN DWORD dwCertBufferLength,
  2011. OUT HANDLE* phSecurityContext
  2012. );
  2013. HRESULT
  2014. APIENTRY
  2015. MQGetSecurityContextEx(
  2016. IN PVOID lpCertBuffer,
  2017. IN DWORD dwCertBufferLength,
  2018. OUT HANDLE* phSecurityContext
  2019. );
  2020. VOID
  2021. APIENTRY
  2022. MQFreeSecurityContext(
  2023. IN HANDLE hSecurityContext
  2024. );
  2025. HRESULT
  2026. APIENTRY
  2027. MQRegisterCertificate(
  2028. IN DWORD dwFlags,
  2029. IN PVOID lpCertBuffer,
  2030. IN DWORD dwCertBufferLength
  2031. );
  2032. HRESULT
  2033. APIENTRY
  2034. MQBeginTransaction(
  2035. OUT ITransaction **ppTransaction
  2036. );
  2037. HRESULT
  2038. APIENTRY
  2039. MQGetOverlappedResult(
  2040. IN LPOVERLAPPED lpOverlapped
  2041. );
  2042. HRESULT
  2043. APIENTRY
  2044. MQGetPrivateComputerInformation(
  2045. IN LPCWSTR lpwcsComputerName,
  2046. IN OUT MQPRIVATEPROPS* pPrivateProps
  2047. );
  2048. HRESULT
  2049. APIENTRY
  2050. MQPurgeQueue(
  2051. IN QUEUEHANDLE hQueue
  2052. );
  2053. HRESULT
  2054. APIENTRY
  2055. MQMgmtGetInfo(
  2056. IN LPCWSTR pComputerName,
  2057. IN LPCWSTR pObjectName,
  2058. IN OUT MQMGMTPROPS* pMgmtProps
  2059. );
  2060. HRESULT
  2061. APIENTRY
  2062. MQMgmtAction(
  2063. IN LPCWSTR pComputerName,
  2064. IN LPCWSTR pObjectName,
  2065. IN LPCWSTR pAction
  2066. );
  2067. #ifdef __cplusplus
  2068. }
  2069. #endif
  2070. #endif // __MQ_H__