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.

3731 lines
128 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8447.0 (22b11824).
  2. //
  3. // mqoa.tlh
  4. //
  5. // C++ source equivalent of Win32 type library d:\\windows\\system32\\mqoa.dll
  6. // compiler-generated file created 11/07/01 at 11:59:44 - DO NOT EDIT!
  7. #pragma once
  8. #pragma pack(push, 8)
  9. #include <comdef.h>
  10. //
  11. // Forward references and typedefs
  12. //
  13. struct __declspec(uuid("d7d6e072-dccd-11d0-aa4b-0060970debae"))
  14. /* dual interface */ IMSMQQuery;
  15. struct __declspec(uuid("d7d6e07d-dccd-11d0-aa4b-0060970debae"))
  16. /* dual interface */ IMSMQQueueInfos;
  17. struct __declspec(uuid("d7d6e07b-dccd-11d0-aa4b-0060970debae"))
  18. /* dual interface */ IMSMQQueueInfo;
  19. struct __declspec(uuid("d7d6e076-dccd-11d0-aa4b-0060970debae"))
  20. /* dual interface */ IMSMQQueue;
  21. struct __declspec(uuid("d7d6e074-dccd-11d0-aa4b-0060970debae"))
  22. /* dual interface */ IMSMQMessage;
  23. struct __declspec(uuid("d7d6e077-dccd-11d0-aa4b-0060970debae"))
  24. /* dual interface */ IMSMQEvent;
  25. struct __declspec(uuid("fd174a80-89cf-11d2-b0f2-00e02c074f6b"))
  26. /* dual interface */ IMSMQQueueInfo2;
  27. struct __declspec(uuid("ef0574e0-06d8-11d3-b100-00e02c074f6b"))
  28. /* dual interface */ IMSMQQueue2;
  29. struct __declspec(uuid("eba96b12-2168-11d3-898c-00e02c074f6b"))
  30. /* dual interface */ IMSMQEvent2;
  31. struct __declspec(uuid("d9933be0-a567-11d2-b0f3-00e02c074f6b"))
  32. /* dual interface */ IMSMQMessage2;
  33. struct __declspec(uuid("eba96b1d-2168-11d3-898c-00e02c074f6b"))
  34. /* dual interface */ IMSMQQueueInfo3;
  35. struct __declspec(uuid("eba96b1b-2168-11d3-898c-00e02c074f6b"))
  36. /* dual interface */ IMSMQQueue3;
  37. struct __declspec(uuid("eba96b1c-2168-11d3-898c-00e02c074f6b"))
  38. /* dual interface */ IMSMQEvent3;
  39. struct __declspec(uuid("eba96b1a-2168-11d3-898c-00e02c074f6b"))
  40. /* dual interface */ IMSMQMessage3;
  41. struct __declspec(uuid("eba96b0f-2168-11d3-898c-00e02c074f6b"))
  42. /* dual interface */ IMSMQQueueInfos2;
  43. struct __declspec(uuid("eba96b1e-2168-11d3-898c-00e02c074f6b"))
  44. /* dual interface */ IMSMQQueueInfos3;
  45. struct __declspec(uuid("d7d6e07f-dccd-11d0-aa4b-0060970debae"))
  46. /* dual interface */ IMSMQTransaction;
  47. struct __declspec(uuid("d7d6e081-dccd-11d0-aa4b-0060970debae"))
  48. /* dual interface */ IMSMQCoordinatedTransactionDispenser;
  49. struct __declspec(uuid("d7d6e083-dccd-11d0-aa4b-0060970debae"))
  50. /* dual interface */ IMSMQTransactionDispenser;
  51. struct __declspec(uuid("eba96b0e-2168-11d3-898c-00e02c074f6b"))
  52. /* dual interface */ IMSMQQuery2;
  53. struct __declspec(uuid("eba96b19-2168-11d3-898c-00e02c074f6b"))
  54. /* dual interface */ IMSMQQuery3;
  55. struct /* coclass */ MSMQQuery;
  56. struct /* coclass */ MSMQMessage;
  57. struct /* coclass */ MSMQQueue;
  58. struct __declspec(uuid("d7ab3341-c9d3-11d1-bb47-0080c7c5a2c0"))
  59. /* dual interface */ IMSMQPrivateEvent;
  60. struct __declspec(uuid("d7d6e078-dccd-11d0-aa4b-0060970debae"))
  61. /* dispinterface */ _DMSMQEventEvents;
  62. struct /* coclass */ MSMQEvent;
  63. struct /* coclass */ MSMQQueueInfo;
  64. struct /* coclass */ MSMQQueueInfos;
  65. struct __declspec(uuid("2ce0c5b0-6e67-11d2-b0e6-00e02c074f6b"))
  66. /* dual interface */ IMSMQTransaction2;
  67. struct __declspec(uuid("eba96b13-2168-11d3-898c-00e02c074f6b"))
  68. /* dual interface */ IMSMQTransaction3;
  69. struct /* coclass */ MSMQTransaction;
  70. struct __declspec(uuid("eba96b10-2168-11d3-898c-00e02c074f6b"))
  71. /* dual interface */ IMSMQCoordinatedTransactionDispenser2;
  72. struct __declspec(uuid("eba96b14-2168-11d3-898c-00e02c074f6b"))
  73. /* dual interface */ IMSMQCoordinatedTransactionDispenser3;
  74. struct /* coclass */ MSMQCoordinatedTransactionDispenser;
  75. struct __declspec(uuid("eba96b11-2168-11d3-898c-00e02c074f6b"))
  76. /* dual interface */ IMSMQTransactionDispenser2;
  77. struct __declspec(uuid("eba96b15-2168-11d3-898c-00e02c074f6b"))
  78. /* dual interface */ IMSMQTransactionDispenser3;
  79. struct /* coclass */ MSMQTransactionDispenser;
  80. struct __declspec(uuid("d7d6e085-dccd-11d0-aa4b-0060970debae"))
  81. /* dual interface */ IMSMQApplication;
  82. struct __declspec(uuid("12a30900-7300-11d2-b0e6-00e02c074f6b"))
  83. /* dual interface */ IMSMQApplication2;
  84. struct __declspec(uuid("eba96b1f-2168-11d3-898c-00e02c074f6b"))
  85. /* dual interface */ IMSMQApplication3;
  86. struct /* coclass */ MSMQApplication;
  87. struct __declspec(uuid("eba96b16-2168-11d3-898c-00e02c074f6b"))
  88. /* dual interface */ IMSMQDestination;
  89. struct __declspec(uuid("eba96b17-2168-11d3-898c-00e02c074f6b"))
  90. /* dual interface */ IMSMQPrivateDestination;
  91. struct /* coclass */ MSMQDestination;
  92. struct __declspec(uuid("0188ac2f-ecb3-4173-9779-635ca2039c72"))
  93. /* dual interface */ IMSMQCollection;
  94. struct __declspec(uuid("be5f0241-e489-4957-8cc4-a452fcf3e23e"))
  95. /* dual interface */ IMSMQManagement;
  96. struct /* coclass */ MSMQManagement;
  97. struct __declspec(uuid("64c478fb-f9b0-4695-8a7f-439ac94326d3"))
  98. /* dual interface */ IMSMQOutgoingQueueManagement;
  99. struct /* coclass */ MSMQOutgoingQueueManagement;
  100. struct __declspec(uuid("7fbe7759-5760-444d-b8a5-5e7ab9a84cce"))
  101. /* dual interface */ IMSMQQueueManagement;
  102. struct /* coclass */ MSMQQueueManagement;
  103. //
  104. // Smart pointer typedef declarations
  105. //
  106. _COM_SMARTPTR_TYPEDEF(IMSMQQuery, __uuidof(IMSMQQuery));
  107. _COM_SMARTPTR_TYPEDEF(IMSMQQueueInfos, __uuidof(IMSMQQueueInfos));
  108. _COM_SMARTPTR_TYPEDEF(IMSMQQueueInfo, __uuidof(IMSMQQueueInfo));
  109. _COM_SMARTPTR_TYPEDEF(IMSMQQueue, __uuidof(IMSMQQueue));
  110. _COM_SMARTPTR_TYPEDEF(IMSMQMessage, __uuidof(IMSMQMessage));
  111. _COM_SMARTPTR_TYPEDEF(IMSMQEvent, __uuidof(IMSMQEvent));
  112. _COM_SMARTPTR_TYPEDEF(IMSMQQueueInfo2, __uuidof(IMSMQQueueInfo2));
  113. _COM_SMARTPTR_TYPEDEF(IMSMQQueue2, __uuidof(IMSMQQueue2));
  114. _COM_SMARTPTR_TYPEDEF(IMSMQEvent2, __uuidof(IMSMQEvent2));
  115. _COM_SMARTPTR_TYPEDEF(IMSMQMessage2, __uuidof(IMSMQMessage2));
  116. _COM_SMARTPTR_TYPEDEF(IMSMQQueueInfo3, __uuidof(IMSMQQueueInfo3));
  117. _COM_SMARTPTR_TYPEDEF(IMSMQQueue3, __uuidof(IMSMQQueue3));
  118. _COM_SMARTPTR_TYPEDEF(IMSMQEvent3, __uuidof(IMSMQEvent3));
  119. _COM_SMARTPTR_TYPEDEF(IMSMQMessage3, __uuidof(IMSMQMessage3));
  120. _COM_SMARTPTR_TYPEDEF(IMSMQQueueInfos2, __uuidof(IMSMQQueueInfos2));
  121. _COM_SMARTPTR_TYPEDEF(IMSMQQueueInfos3, __uuidof(IMSMQQueueInfos3));
  122. _COM_SMARTPTR_TYPEDEF(IMSMQTransaction, __uuidof(IMSMQTransaction));
  123. _COM_SMARTPTR_TYPEDEF(IMSMQCoordinatedTransactionDispenser, __uuidof(IMSMQCoordinatedTransactionDispenser));
  124. _COM_SMARTPTR_TYPEDEF(IMSMQTransactionDispenser, __uuidof(IMSMQTransactionDispenser));
  125. _COM_SMARTPTR_TYPEDEF(IMSMQQuery2, __uuidof(IMSMQQuery2));
  126. _COM_SMARTPTR_TYPEDEF(IMSMQQuery3, __uuidof(IMSMQQuery3));
  127. _COM_SMARTPTR_TYPEDEF(IMSMQPrivateEvent, __uuidof(IMSMQPrivateEvent));
  128. _COM_SMARTPTR_TYPEDEF(_DMSMQEventEvents, __uuidof(IDispatch));
  129. _COM_SMARTPTR_TYPEDEF(IMSMQTransaction2, __uuidof(IMSMQTransaction2));
  130. _COM_SMARTPTR_TYPEDEF(IMSMQTransaction3, __uuidof(IMSMQTransaction3));
  131. _COM_SMARTPTR_TYPEDEF(IMSMQCoordinatedTransactionDispenser2, __uuidof(IMSMQCoordinatedTransactionDispenser2));
  132. _COM_SMARTPTR_TYPEDEF(IMSMQCoordinatedTransactionDispenser3, __uuidof(IMSMQCoordinatedTransactionDispenser3));
  133. _COM_SMARTPTR_TYPEDEF(IMSMQTransactionDispenser2, __uuidof(IMSMQTransactionDispenser2));
  134. _COM_SMARTPTR_TYPEDEF(IMSMQTransactionDispenser3, __uuidof(IMSMQTransactionDispenser3));
  135. _COM_SMARTPTR_TYPEDEF(IMSMQApplication, __uuidof(IMSMQApplication));
  136. _COM_SMARTPTR_TYPEDEF(IMSMQApplication2, __uuidof(IMSMQApplication2));
  137. _COM_SMARTPTR_TYPEDEF(IMSMQApplication3, __uuidof(IMSMQApplication3));
  138. _COM_SMARTPTR_TYPEDEF(IMSMQDestination, __uuidof(IMSMQDestination));
  139. _COM_SMARTPTR_TYPEDEF(IMSMQPrivateDestination, __uuidof(IMSMQPrivateDestination));
  140. _COM_SMARTPTR_TYPEDEF(IMSMQCollection, __uuidof(IMSMQCollection));
  141. _COM_SMARTPTR_TYPEDEF(IMSMQManagement, __uuidof(IMSMQManagement));
  142. _COM_SMARTPTR_TYPEDEF(IMSMQOutgoingQueueManagement, __uuidof(IMSMQOutgoingQueueManagement));
  143. _COM_SMARTPTR_TYPEDEF(IMSMQQueueManagement, __uuidof(IMSMQQueueManagement));
  144. //
  145. // Type library items
  146. //
  147. struct __declspec(uuid("d7d6e072-dccd-11d0-aa4b-0060970debae"))
  148. IMSMQQuery : IDispatch
  149. {
  150. //
  151. // Wrapper methods for error-handling
  152. //
  153. IMSMQQueueInfosPtr LookupQueue (
  154. VARIANT * QueueGuid = &vtMissing,
  155. VARIANT * ServiceTypeGuid = &vtMissing,
  156. VARIANT * Label = &vtMissing,
  157. VARIANT * CreateTime = &vtMissing,
  158. VARIANT * ModifyTime = &vtMissing,
  159. VARIANT * RelServiceType = &vtMissing,
  160. VARIANT * RelLabel = &vtMissing,
  161. VARIANT * RelCreateTime = &vtMissing,
  162. VARIANT * RelModifyTime = &vtMissing );
  163. //
  164. // Raw methods provided by interface
  165. //
  166. virtual HRESULT __stdcall raw_LookupQueue (
  167. VARIANT * QueueGuid,
  168. VARIANT * ServiceTypeGuid,
  169. VARIANT * Label,
  170. VARIANT * CreateTime,
  171. VARIANT * ModifyTime,
  172. VARIANT * RelServiceType,
  173. VARIANT * RelLabel,
  174. VARIANT * RelCreateTime,
  175. VARIANT * RelModifyTime,
  176. struct IMSMQQueueInfos * * ppqinfos ) = 0;
  177. };
  178. struct __declspec(uuid("d7d6e07d-dccd-11d0-aa4b-0060970debae"))
  179. IMSMQQueueInfos : IDispatch
  180. {
  181. //
  182. // Wrapper methods for error-handling
  183. //
  184. HRESULT Reset ( );
  185. IMSMQQueueInfoPtr Next ( );
  186. //
  187. // Raw methods provided by interface
  188. //
  189. virtual HRESULT __stdcall raw_Reset ( ) = 0;
  190. virtual HRESULT __stdcall raw_Next (
  191. struct IMSMQQueueInfo * * ppqinfoNext ) = 0;
  192. };
  193. struct __declspec(uuid("d7d6e07b-dccd-11d0-aa4b-0060970debae"))
  194. IMSMQQueueInfo : IDispatch
  195. {
  196. //
  197. // Property data
  198. //
  199. __declspec(property(get=GetQueueGuid))
  200. _bstr_t QueueGuid;
  201. __declspec(property(get=GetServiceTypeGuid,put=PutServiceTypeGuid))
  202. _bstr_t ServiceTypeGuid;
  203. __declspec(property(get=GetLabel,put=PutLabel))
  204. _bstr_t Label;
  205. __declspec(property(get=GetPathName,put=PutPathName))
  206. _bstr_t PathName;
  207. __declspec(property(get=GetFormatName,put=PutFormatName))
  208. _bstr_t FormatName;
  209. __declspec(property(get=GetIsTransactional))
  210. short IsTransactional;
  211. __declspec(property(get=GetPrivLevel,put=PutPrivLevel))
  212. long PrivLevel;
  213. __declspec(property(get=GetJournal,put=PutJournal))
  214. long Journal;
  215. __declspec(property(get=GetBasePriority,put=PutBasePriority))
  216. long BasePriority;
  217. __declspec(property(get=GetCreateTime))
  218. _variant_t CreateTime;
  219. __declspec(property(get=GetModifyTime))
  220. _variant_t ModifyTime;
  221. __declspec(property(get=GetAuthenticate,put=PutAuthenticate))
  222. long Authenticate;
  223. __declspec(property(get=GetQuota,put=PutQuota))
  224. long Quota;
  225. __declspec(property(get=GetJournalQuota,put=PutJournalQuota))
  226. long JournalQuota;
  227. __declspec(property(get=GetIsWorldReadable))
  228. short IsWorldReadable;
  229. //
  230. // Wrapper methods for error-handling
  231. //
  232. _bstr_t GetQueueGuid ( );
  233. _bstr_t GetServiceTypeGuid ( );
  234. void PutServiceTypeGuid (
  235. _bstr_t pbstrGuidServiceType );
  236. _bstr_t GetLabel ( );
  237. void PutLabel (
  238. _bstr_t pbstrLabel );
  239. _bstr_t GetPathName ( );
  240. void PutPathName (
  241. _bstr_t pbstrPathName );
  242. _bstr_t GetFormatName ( );
  243. void PutFormatName (
  244. _bstr_t pbstrFormatName );
  245. short GetIsTransactional ( );
  246. long GetPrivLevel ( );
  247. void PutPrivLevel (
  248. long plPrivLevel );
  249. long GetJournal ( );
  250. void PutJournal (
  251. long plJournal );
  252. long GetQuota ( );
  253. void PutQuota (
  254. long plQuota );
  255. long GetBasePriority ( );
  256. void PutBasePriority (
  257. long plBasePriority );
  258. _variant_t GetCreateTime ( );
  259. _variant_t GetModifyTime ( );
  260. long GetAuthenticate ( );
  261. void PutAuthenticate (
  262. long plAuthenticate );
  263. long GetJournalQuota ( );
  264. void PutJournalQuota (
  265. long plJournalQuota );
  266. short GetIsWorldReadable ( );
  267. HRESULT Create (
  268. VARIANT * IsTransactional = &vtMissing,
  269. VARIANT * IsWorldReadable = &vtMissing );
  270. HRESULT Delete ( );
  271. IMSMQQueuePtr Open (
  272. long Access,
  273. long ShareMode );
  274. HRESULT Refresh ( );
  275. HRESULT Update ( );
  276. //
  277. // Raw methods provided by interface
  278. //
  279. virtual HRESULT __stdcall get_QueueGuid (
  280. BSTR * pbstrGuidQueue ) = 0;
  281. virtual HRESULT __stdcall get_ServiceTypeGuid (
  282. BSTR * pbstrGuidServiceType ) = 0;
  283. virtual HRESULT __stdcall put_ServiceTypeGuid (
  284. BSTR pbstrGuidServiceType ) = 0;
  285. virtual HRESULT __stdcall get_Label (
  286. BSTR * pbstrLabel ) = 0;
  287. virtual HRESULT __stdcall put_Label (
  288. BSTR pbstrLabel ) = 0;
  289. virtual HRESULT __stdcall get_PathName (
  290. BSTR * pbstrPathName ) = 0;
  291. virtual HRESULT __stdcall put_PathName (
  292. BSTR pbstrPathName ) = 0;
  293. virtual HRESULT __stdcall get_FormatName (
  294. BSTR * pbstrFormatName ) = 0;
  295. virtual HRESULT __stdcall put_FormatName (
  296. BSTR pbstrFormatName ) = 0;
  297. virtual HRESULT __stdcall get_IsTransactional (
  298. short * pisTransactional ) = 0;
  299. virtual HRESULT __stdcall get_PrivLevel (
  300. long * plPrivLevel ) = 0;
  301. virtual HRESULT __stdcall put_PrivLevel (
  302. long plPrivLevel ) = 0;
  303. virtual HRESULT __stdcall get_Journal (
  304. long * plJournal ) = 0;
  305. virtual HRESULT __stdcall put_Journal (
  306. long plJournal ) = 0;
  307. virtual HRESULT __stdcall get_Quota (
  308. long * plQuota ) = 0;
  309. virtual HRESULT __stdcall put_Quota (
  310. long plQuota ) = 0;
  311. virtual HRESULT __stdcall get_BasePriority (
  312. long * plBasePriority ) = 0;
  313. virtual HRESULT __stdcall put_BasePriority (
  314. long plBasePriority ) = 0;
  315. virtual HRESULT __stdcall get_CreateTime (
  316. VARIANT * pvarCreateTime ) = 0;
  317. virtual HRESULT __stdcall get_ModifyTime (
  318. VARIANT * pvarModifyTime ) = 0;
  319. virtual HRESULT __stdcall get_Authenticate (
  320. long * plAuthenticate ) = 0;
  321. virtual HRESULT __stdcall put_Authenticate (
  322. long plAuthenticate ) = 0;
  323. virtual HRESULT __stdcall get_JournalQuota (
  324. long * plJournalQuota ) = 0;
  325. virtual HRESULT __stdcall put_JournalQuota (
  326. long plJournalQuota ) = 0;
  327. virtual HRESULT __stdcall get_IsWorldReadable (
  328. short * pisWorldReadable ) = 0;
  329. virtual HRESULT __stdcall raw_Create (
  330. VARIANT * IsTransactional = &vtMissing,
  331. VARIANT * IsWorldReadable = &vtMissing ) = 0;
  332. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  333. virtual HRESULT __stdcall raw_Open (
  334. long Access,
  335. long ShareMode,
  336. struct IMSMQQueue * * ppq ) = 0;
  337. virtual HRESULT __stdcall raw_Refresh ( ) = 0;
  338. virtual HRESULT __stdcall raw_Update ( ) = 0;
  339. };
  340. struct __declspec(uuid("d7d6e076-dccd-11d0-aa4b-0060970debae"))
  341. IMSMQQueue : IDispatch
  342. {
  343. //
  344. // Property data
  345. //
  346. __declspec(property(get=GetHandle))
  347. long Handle;
  348. __declspec(property(get=GetAccess))
  349. long Access;
  350. __declspec(property(get=GetShareMode))
  351. long ShareMode;
  352. __declspec(property(get=GetQueueInfo))
  353. IMSMQQueueInfoPtr QueueInfo;
  354. __declspec(property(get=GetIsOpen))
  355. short IsOpen;
  356. //
  357. // Wrapper methods for error-handling
  358. //
  359. long GetAccess ( );
  360. long GetShareMode ( );
  361. IMSMQQueueInfoPtr GetQueueInfo ( );
  362. long GetHandle ( );
  363. short GetIsOpen ( );
  364. HRESULT Close ( );
  365. IMSMQMessagePtr Receive (
  366. VARIANT * Transaction = &vtMissing,
  367. VARIANT * WantDestinationQueue = &vtMissing,
  368. VARIANT * WantBody = &vtMissing,
  369. VARIANT * ReceiveTimeout = &vtMissing );
  370. IMSMQMessagePtr Peek (
  371. VARIANT * WantDestinationQueue = &vtMissing,
  372. VARIANT * WantBody = &vtMissing,
  373. VARIANT * ReceiveTimeout = &vtMissing );
  374. HRESULT EnableNotification (
  375. struct IMSMQEvent * Event,
  376. VARIANT * Cursor = &vtMissing,
  377. VARIANT * ReceiveTimeout = &vtMissing );
  378. HRESULT Reset ( );
  379. IMSMQMessagePtr ReceiveCurrent (
  380. VARIANT * Transaction = &vtMissing,
  381. VARIANT * WantDestinationQueue = &vtMissing,
  382. VARIANT * WantBody = &vtMissing,
  383. VARIANT * ReceiveTimeout = &vtMissing );
  384. IMSMQMessagePtr PeekNext (
  385. VARIANT * WantDestinationQueue = &vtMissing,
  386. VARIANT * WantBody = &vtMissing,
  387. VARIANT * ReceiveTimeout = &vtMissing );
  388. IMSMQMessagePtr PeekCurrent (
  389. VARIANT * WantDestinationQueue = &vtMissing,
  390. VARIANT * WantBody = &vtMissing,
  391. VARIANT * ReceiveTimeout = &vtMissing );
  392. //
  393. // Raw methods provided by interface
  394. //
  395. virtual HRESULT __stdcall get_Access (
  396. long * plAccess ) = 0;
  397. virtual HRESULT __stdcall get_ShareMode (
  398. long * plShareMode ) = 0;
  399. virtual HRESULT __stdcall get_QueueInfo (
  400. struct IMSMQQueueInfo * * ppqinfo ) = 0;
  401. virtual HRESULT __stdcall get_Handle (
  402. long * plHandle ) = 0;
  403. virtual HRESULT __stdcall get_IsOpen (
  404. short * pisOpen ) = 0;
  405. virtual HRESULT __stdcall raw_Close ( ) = 0;
  406. virtual HRESULT __stdcall raw_Receive (
  407. VARIANT * Transaction,
  408. VARIANT * WantDestinationQueue,
  409. VARIANT * WantBody,
  410. VARIANT * ReceiveTimeout,
  411. struct IMSMQMessage * * ppmsg ) = 0;
  412. virtual HRESULT __stdcall raw_Peek (
  413. VARIANT * WantDestinationQueue,
  414. VARIANT * WantBody,
  415. VARIANT * ReceiveTimeout,
  416. struct IMSMQMessage * * ppmsg ) = 0;
  417. virtual HRESULT __stdcall raw_EnableNotification (
  418. struct IMSMQEvent * Event,
  419. VARIANT * Cursor = &vtMissing,
  420. VARIANT * ReceiveTimeout = &vtMissing ) = 0;
  421. virtual HRESULT __stdcall raw_Reset ( ) = 0;
  422. virtual HRESULT __stdcall raw_ReceiveCurrent (
  423. VARIANT * Transaction,
  424. VARIANT * WantDestinationQueue,
  425. VARIANT * WantBody,
  426. VARIANT * ReceiveTimeout,
  427. struct IMSMQMessage * * ppmsg ) = 0;
  428. virtual HRESULT __stdcall raw_PeekNext (
  429. VARIANT * WantDestinationQueue,
  430. VARIANT * WantBody,
  431. VARIANT * ReceiveTimeout,
  432. struct IMSMQMessage * * ppmsg ) = 0;
  433. virtual HRESULT __stdcall raw_PeekCurrent (
  434. VARIANT * WantDestinationQueue,
  435. VARIANT * WantBody,
  436. VARIANT * ReceiveTimeout,
  437. struct IMSMQMessage * * ppmsg ) = 0;
  438. };
  439. struct __declspec(uuid("d7d6e074-dccd-11d0-aa4b-0060970debae"))
  440. IMSMQMessage : IDispatch
  441. {
  442. //
  443. // Property data
  444. //
  445. __declspec(property(get=GetBody,put=PutBody))
  446. _variant_t Body;
  447. __declspec(property(get=GetDelivery,put=PutDelivery))
  448. long Delivery;
  449. __declspec(property(get=GetPriority,put=PutPriority))
  450. long Priority;
  451. __declspec(property(get=GetJournal,put=PutJournal))
  452. long Journal;
  453. __declspec(property(get=GetResponseQueueInfo,put=PutRefResponseQueueInfo))
  454. IMSMQQueueInfoPtr ResponseQueueInfo;
  455. __declspec(property(get=GetAppSpecific,put=PutAppSpecific))
  456. long AppSpecific;
  457. __declspec(property(get=GetSourceMachineGuid))
  458. _bstr_t SourceMachineGuid;
  459. __declspec(property(get=GetClass))
  460. long Class;
  461. __declspec(property(get=GetAdminQueueInfo,put=PutRefAdminQueueInfo))
  462. IMSMQQueueInfoPtr AdminQueueInfo;
  463. __declspec(property(get=GetId))
  464. _variant_t Id;
  465. __declspec(property(get=GetCorrelationId,put=PutCorrelationId))
  466. _variant_t CorrelationId;
  467. __declspec(property(get=GetAck,put=PutAck))
  468. long Ack;
  469. __declspec(property(get=GetLabel,put=PutLabel))
  470. _bstr_t Label;
  471. __declspec(property(get=GetBodyLength))
  472. long BodyLength;
  473. __declspec(property(get=GetMaxTimeToReachQueue,put=PutMaxTimeToReachQueue))
  474. long MaxTimeToReachQueue;
  475. __declspec(property(get=GetMaxTimeToReceive,put=PutMaxTimeToReceive))
  476. long MaxTimeToReceive;
  477. __declspec(property(get=GetEncryptAlgorithm,put=PutEncryptAlgorithm))
  478. long EncryptAlgorithm;
  479. __declspec(property(get=GetHashAlgorithm,put=PutHashAlgorithm))
  480. long HashAlgorithm;
  481. __declspec(property(get=GetSentTime))
  482. _variant_t SentTime;
  483. __declspec(property(get=GetArrivedTime))
  484. _variant_t ArrivedTime;
  485. __declspec(property(get=GetDestinationQueueInfo))
  486. IMSMQQueueInfoPtr DestinationQueueInfo;
  487. __declspec(property(get=GetSenderCertificate,put=PutSenderCertificate))
  488. _variant_t SenderCertificate;
  489. __declspec(property(get=GetSenderId))
  490. _variant_t SenderId;
  491. __declspec(property(get=GetSenderIdType,put=PutSenderIdType))
  492. long SenderIdType;
  493. __declspec(property(get=GetTrace,put=PutTrace))
  494. long Trace;
  495. __declspec(property(get=GetPrivLevel,put=PutPrivLevel))
  496. long PrivLevel;
  497. __declspec(property(get=GetAuthLevel,put=PutAuthLevel))
  498. long AuthLevel;
  499. __declspec(property(get=GetIsAuthenticated))
  500. short IsAuthenticated;
  501. //
  502. // Wrapper methods for error-handling
  503. //
  504. long GetClass ( );
  505. long GetPrivLevel ( );
  506. void PutPrivLevel (
  507. long plPrivLevel );
  508. long GetAuthLevel ( );
  509. void PutAuthLevel (
  510. long plAuthLevel );
  511. short GetIsAuthenticated ( );
  512. long GetDelivery ( );
  513. void PutDelivery (
  514. long plDelivery );
  515. long GetTrace ( );
  516. void PutTrace (
  517. long plTrace );
  518. long GetPriority ( );
  519. void PutPriority (
  520. long plPriority );
  521. long GetJournal ( );
  522. void PutJournal (
  523. long plJournal );
  524. IMSMQQueueInfoPtr GetResponseQueueInfo ( );
  525. void PutRefResponseQueueInfo (
  526. struct IMSMQQueueInfo * ppqinfoResponse );
  527. long GetAppSpecific ( );
  528. void PutAppSpecific (
  529. long plAppSpecific );
  530. _bstr_t GetSourceMachineGuid ( );
  531. long GetBodyLength ( );
  532. _variant_t GetBody ( );
  533. void PutBody (
  534. const _variant_t & pvarBody );
  535. IMSMQQueueInfoPtr GetAdminQueueInfo ( );
  536. void PutRefAdminQueueInfo (
  537. struct IMSMQQueueInfo * ppqinfoAdmin );
  538. _variant_t GetId ( );
  539. _variant_t GetCorrelationId ( );
  540. void PutCorrelationId (
  541. const _variant_t & pvarMsgId );
  542. long GetAck ( );
  543. void PutAck (
  544. long plAck );
  545. _bstr_t GetLabel ( );
  546. void PutLabel (
  547. _bstr_t pbstrLabel );
  548. long GetMaxTimeToReachQueue ( );
  549. void PutMaxTimeToReachQueue (
  550. long plMaxTimeToReachQueue );
  551. long GetMaxTimeToReceive ( );
  552. void PutMaxTimeToReceive (
  553. long plMaxTimeToReceive );
  554. long GetHashAlgorithm ( );
  555. void PutHashAlgorithm (
  556. long plHashAlg );
  557. long GetEncryptAlgorithm ( );
  558. void PutEncryptAlgorithm (
  559. long plEncryptAlg );
  560. _variant_t GetSentTime ( );
  561. _variant_t GetArrivedTime ( );
  562. IMSMQQueueInfoPtr GetDestinationQueueInfo ( );
  563. _variant_t GetSenderCertificate ( );
  564. void PutSenderCertificate (
  565. const _variant_t & pvarSenderCert );
  566. _variant_t GetSenderId ( );
  567. long GetSenderIdType ( );
  568. void PutSenderIdType (
  569. long plSenderIdType );
  570. HRESULT Send (
  571. struct IMSMQQueue * DestinationQueue,
  572. VARIANT * Transaction = &vtMissing );
  573. HRESULT AttachCurrentSecurityContext ( );
  574. //
  575. // Raw methods provided by interface
  576. //
  577. virtual HRESULT __stdcall get_Class (
  578. long * plClass ) = 0;
  579. virtual HRESULT __stdcall get_PrivLevel (
  580. long * plPrivLevel ) = 0;
  581. virtual HRESULT __stdcall put_PrivLevel (
  582. long plPrivLevel ) = 0;
  583. virtual HRESULT __stdcall get_AuthLevel (
  584. long * plAuthLevel ) = 0;
  585. virtual HRESULT __stdcall put_AuthLevel (
  586. long plAuthLevel ) = 0;
  587. virtual HRESULT __stdcall get_IsAuthenticated (
  588. short * pisAuthenticated ) = 0;
  589. virtual HRESULT __stdcall get_Delivery (
  590. long * plDelivery ) = 0;
  591. virtual HRESULT __stdcall put_Delivery (
  592. long plDelivery ) = 0;
  593. virtual HRESULT __stdcall get_Trace (
  594. long * plTrace ) = 0;
  595. virtual HRESULT __stdcall put_Trace (
  596. long plTrace ) = 0;
  597. virtual HRESULT __stdcall get_Priority (
  598. long * plPriority ) = 0;
  599. virtual HRESULT __stdcall put_Priority (
  600. long plPriority ) = 0;
  601. virtual HRESULT __stdcall get_Journal (
  602. long * plJournal ) = 0;
  603. virtual HRESULT __stdcall put_Journal (
  604. long plJournal ) = 0;
  605. virtual HRESULT __stdcall get_ResponseQueueInfo (
  606. struct IMSMQQueueInfo * * ppqinfoResponse ) = 0;
  607. virtual HRESULT __stdcall putref_ResponseQueueInfo (
  608. struct IMSMQQueueInfo * ppqinfoResponse ) = 0;
  609. virtual HRESULT __stdcall get_AppSpecific (
  610. long * plAppSpecific ) = 0;
  611. virtual HRESULT __stdcall put_AppSpecific (
  612. long plAppSpecific ) = 0;
  613. virtual HRESULT __stdcall get_SourceMachineGuid (
  614. BSTR * pbstrGuidSrcMachine ) = 0;
  615. virtual HRESULT __stdcall get_BodyLength (
  616. long * pcbBody ) = 0;
  617. virtual HRESULT __stdcall get_Body (
  618. VARIANT * pvarBody ) = 0;
  619. virtual HRESULT __stdcall put_Body (
  620. VARIANT pvarBody ) = 0;
  621. virtual HRESULT __stdcall get_AdminQueueInfo (
  622. struct IMSMQQueueInfo * * ppqinfoAdmin ) = 0;
  623. virtual HRESULT __stdcall putref_AdminQueueInfo (
  624. struct IMSMQQueueInfo * ppqinfoAdmin ) = 0;
  625. virtual HRESULT __stdcall get_Id (
  626. VARIANT * pvarMsgId ) = 0;
  627. virtual HRESULT __stdcall get_CorrelationId (
  628. VARIANT * pvarMsgId ) = 0;
  629. virtual HRESULT __stdcall put_CorrelationId (
  630. VARIANT pvarMsgId ) = 0;
  631. virtual HRESULT __stdcall get_Ack (
  632. long * plAck ) = 0;
  633. virtual HRESULT __stdcall put_Ack (
  634. long plAck ) = 0;
  635. virtual HRESULT __stdcall get_Label (
  636. BSTR * pbstrLabel ) = 0;
  637. virtual HRESULT __stdcall put_Label (
  638. BSTR pbstrLabel ) = 0;
  639. virtual HRESULT __stdcall get_MaxTimeToReachQueue (
  640. long * plMaxTimeToReachQueue ) = 0;
  641. virtual HRESULT __stdcall put_MaxTimeToReachQueue (
  642. long plMaxTimeToReachQueue ) = 0;
  643. virtual HRESULT __stdcall get_MaxTimeToReceive (
  644. long * plMaxTimeToReceive ) = 0;
  645. virtual HRESULT __stdcall put_MaxTimeToReceive (
  646. long plMaxTimeToReceive ) = 0;
  647. virtual HRESULT __stdcall get_HashAlgorithm (
  648. long * plHashAlg ) = 0;
  649. virtual HRESULT __stdcall put_HashAlgorithm (
  650. long plHashAlg ) = 0;
  651. virtual HRESULT __stdcall get_EncryptAlgorithm (
  652. long * plEncryptAlg ) = 0;
  653. virtual HRESULT __stdcall put_EncryptAlgorithm (
  654. long plEncryptAlg ) = 0;
  655. virtual HRESULT __stdcall get_SentTime (
  656. VARIANT * pvarSentTime ) = 0;
  657. virtual HRESULT __stdcall get_ArrivedTime (
  658. VARIANT * plArrivedTime ) = 0;
  659. virtual HRESULT __stdcall get_DestinationQueueInfo (
  660. struct IMSMQQueueInfo * * ppqinfoDest ) = 0;
  661. virtual HRESULT __stdcall get_SenderCertificate (
  662. VARIANT * pvarSenderCert ) = 0;
  663. virtual HRESULT __stdcall put_SenderCertificate (
  664. VARIANT pvarSenderCert ) = 0;
  665. virtual HRESULT __stdcall get_SenderId (
  666. VARIANT * pvarSenderId ) = 0;
  667. virtual HRESULT __stdcall get_SenderIdType (
  668. long * plSenderIdType ) = 0;
  669. virtual HRESULT __stdcall put_SenderIdType (
  670. long plSenderIdType ) = 0;
  671. virtual HRESULT __stdcall raw_Send (
  672. struct IMSMQQueue * DestinationQueue,
  673. VARIANT * Transaction = &vtMissing ) = 0;
  674. virtual HRESULT __stdcall raw_AttachCurrentSecurityContext ( ) = 0;
  675. };
  676. struct __declspec(uuid("d7d6e077-dccd-11d0-aa4b-0060970debae"))
  677. IMSMQEvent : IDispatch
  678. {};
  679. struct __declspec(uuid("fd174a80-89cf-11d2-b0f2-00e02c074f6b"))
  680. IMSMQQueueInfo2 : IDispatch
  681. {
  682. //
  683. // Property data
  684. //
  685. __declspec(property(get=GetQueueGuid))
  686. _bstr_t QueueGuid;
  687. __declspec(property(get=GetServiceTypeGuid,put=PutServiceTypeGuid))
  688. _bstr_t ServiceTypeGuid;
  689. __declspec(property(get=GetLabel,put=PutLabel))
  690. _bstr_t Label;
  691. __declspec(property(get=GetPathName,put=PutPathName))
  692. _bstr_t PathName;
  693. __declspec(property(get=GetFormatName,put=PutFormatName))
  694. _bstr_t FormatName;
  695. __declspec(property(get=GetIsTransactional))
  696. short IsTransactional;
  697. __declspec(property(get=GetPrivLevel,put=PutPrivLevel))
  698. long PrivLevel;
  699. __declspec(property(get=GetJournal,put=PutJournal))
  700. long Journal;
  701. __declspec(property(get=GetBasePriority,put=PutBasePriority))
  702. long BasePriority;
  703. __declspec(property(get=GetCreateTime))
  704. _variant_t CreateTime;
  705. __declspec(property(get=GetModifyTime))
  706. _variant_t ModifyTime;
  707. __declspec(property(get=GetAuthenticate,put=PutAuthenticate))
  708. long Authenticate;
  709. __declspec(property(get=GetQuota,put=PutQuota))
  710. long Quota;
  711. __declspec(property(get=GetJournalQuota,put=PutJournalQuota))
  712. long JournalQuota;
  713. __declspec(property(get=GetIsWorldReadable))
  714. short IsWorldReadable;
  715. __declspec(property(get=GetPathNameDNS))
  716. _bstr_t PathNameDNS;
  717. __declspec(property(get=GetProperties))
  718. IDispatchPtr Properties;
  719. __declspec(property(get=GetSecurity,put=PutSecurity))
  720. _variant_t Security;
  721. //
  722. // Wrapper methods for error-handling
  723. //
  724. _bstr_t GetQueueGuid ( );
  725. _bstr_t GetServiceTypeGuid ( );
  726. void PutServiceTypeGuid (
  727. _bstr_t pbstrGuidServiceType );
  728. _bstr_t GetLabel ( );
  729. void PutLabel (
  730. _bstr_t pbstrLabel );
  731. _bstr_t GetPathName ( );
  732. void PutPathName (
  733. _bstr_t pbstrPathName );
  734. _bstr_t GetFormatName ( );
  735. void PutFormatName (
  736. _bstr_t pbstrFormatName );
  737. short GetIsTransactional ( );
  738. long GetPrivLevel ( );
  739. void PutPrivLevel (
  740. long plPrivLevel );
  741. long GetJournal ( );
  742. void PutJournal (
  743. long plJournal );
  744. long GetQuota ( );
  745. void PutQuota (
  746. long plQuota );
  747. long GetBasePriority ( );
  748. void PutBasePriority (
  749. long plBasePriority );
  750. _variant_t GetCreateTime ( );
  751. _variant_t GetModifyTime ( );
  752. long GetAuthenticate ( );
  753. void PutAuthenticate (
  754. long plAuthenticate );
  755. long GetJournalQuota ( );
  756. void PutJournalQuota (
  757. long plJournalQuota );
  758. short GetIsWorldReadable ( );
  759. HRESULT Create (
  760. VARIANT * IsTransactional = &vtMissing,
  761. VARIANT * IsWorldReadable = &vtMissing );
  762. HRESULT Delete ( );
  763. IMSMQQueue2Ptr Open (
  764. long Access,
  765. long ShareMode );
  766. HRESULT Refresh ( );
  767. HRESULT Update ( );
  768. _bstr_t GetPathNameDNS ( );
  769. IDispatchPtr GetProperties ( );
  770. _variant_t GetSecurity ( );
  771. void PutSecurity (
  772. const _variant_t & pvarSecurity );
  773. //
  774. // Raw methods provided by interface
  775. //
  776. virtual HRESULT __stdcall get_QueueGuid (
  777. BSTR * pbstrGuidQueue ) = 0;
  778. virtual HRESULT __stdcall get_ServiceTypeGuid (
  779. BSTR * pbstrGuidServiceType ) = 0;
  780. virtual HRESULT __stdcall put_ServiceTypeGuid (
  781. BSTR pbstrGuidServiceType ) = 0;
  782. virtual HRESULT __stdcall get_Label (
  783. BSTR * pbstrLabel ) = 0;
  784. virtual HRESULT __stdcall put_Label (
  785. BSTR pbstrLabel ) = 0;
  786. virtual HRESULT __stdcall get_PathName (
  787. BSTR * pbstrPathName ) = 0;
  788. virtual HRESULT __stdcall put_PathName (
  789. BSTR pbstrPathName ) = 0;
  790. virtual HRESULT __stdcall get_FormatName (
  791. BSTR * pbstrFormatName ) = 0;
  792. virtual HRESULT __stdcall put_FormatName (
  793. BSTR pbstrFormatName ) = 0;
  794. virtual HRESULT __stdcall get_IsTransactional (
  795. short * pisTransactional ) = 0;
  796. virtual HRESULT __stdcall get_PrivLevel (
  797. long * plPrivLevel ) = 0;
  798. virtual HRESULT __stdcall put_PrivLevel (
  799. long plPrivLevel ) = 0;
  800. virtual HRESULT __stdcall get_Journal (
  801. long * plJournal ) = 0;
  802. virtual HRESULT __stdcall put_Journal (
  803. long plJournal ) = 0;
  804. virtual HRESULT __stdcall get_Quota (
  805. long * plQuota ) = 0;
  806. virtual HRESULT __stdcall put_Quota (
  807. long plQuota ) = 0;
  808. virtual HRESULT __stdcall get_BasePriority (
  809. long * plBasePriority ) = 0;
  810. virtual HRESULT __stdcall put_BasePriority (
  811. long plBasePriority ) = 0;
  812. virtual HRESULT __stdcall get_CreateTime (
  813. VARIANT * pvarCreateTime ) = 0;
  814. virtual HRESULT __stdcall get_ModifyTime (
  815. VARIANT * pvarModifyTime ) = 0;
  816. virtual HRESULT __stdcall get_Authenticate (
  817. long * plAuthenticate ) = 0;
  818. virtual HRESULT __stdcall put_Authenticate (
  819. long plAuthenticate ) = 0;
  820. virtual HRESULT __stdcall get_JournalQuota (
  821. long * plJournalQuota ) = 0;
  822. virtual HRESULT __stdcall put_JournalQuota (
  823. long plJournalQuota ) = 0;
  824. virtual HRESULT __stdcall get_IsWorldReadable (
  825. short * pisWorldReadable ) = 0;
  826. virtual HRESULT __stdcall raw_Create (
  827. VARIANT * IsTransactional = &vtMissing,
  828. VARIANT * IsWorldReadable = &vtMissing ) = 0;
  829. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  830. virtual HRESULT __stdcall raw_Open (
  831. long Access,
  832. long ShareMode,
  833. struct IMSMQQueue2 * * ppq ) = 0;
  834. virtual HRESULT __stdcall raw_Refresh ( ) = 0;
  835. virtual HRESULT __stdcall raw_Update ( ) = 0;
  836. virtual HRESULT __stdcall get_PathNameDNS (
  837. BSTR * pbstrPathNameDNS ) = 0;
  838. virtual HRESULT __stdcall get_Properties (
  839. IDispatch * * ppcolProperties ) = 0;
  840. virtual HRESULT __stdcall get_Security (
  841. VARIANT * pvarSecurity ) = 0;
  842. virtual HRESULT __stdcall put_Security (
  843. VARIANT pvarSecurity ) = 0;
  844. };
  845. struct __declspec(uuid("ef0574e0-06d8-11d3-b100-00e02c074f6b"))
  846. IMSMQQueue2 : IDispatch
  847. {
  848. //
  849. // Property data
  850. //
  851. __declspec(property(get=GetHandle))
  852. long Handle;
  853. __declspec(property(get=GetAccess))
  854. long Access;
  855. __declspec(property(get=GetShareMode))
  856. long ShareMode;
  857. __declspec(property(get=GetQueueInfo))
  858. IMSMQQueueInfo2Ptr QueueInfo;
  859. __declspec(property(get=GetIsOpen))
  860. short IsOpen;
  861. __declspec(property(get=GetProperties))
  862. IDispatchPtr Properties;
  863. //
  864. // Wrapper methods for error-handling
  865. //
  866. long GetAccess ( );
  867. long GetShareMode ( );
  868. IMSMQQueueInfo2Ptr GetQueueInfo ( );
  869. long GetHandle ( );
  870. short GetIsOpen ( );
  871. HRESULT Close ( );
  872. IMSMQMessagePtr Receive_v1 (
  873. VARIANT * Transaction = &vtMissing,
  874. VARIANT * WantDestinationQueue = &vtMissing,
  875. VARIANT * WantBody = &vtMissing,
  876. VARIANT * ReceiveTimeout = &vtMissing );
  877. IMSMQMessagePtr Peek_v1 (
  878. VARIANT * WantDestinationQueue = &vtMissing,
  879. VARIANT * WantBody = &vtMissing,
  880. VARIANT * ReceiveTimeout = &vtMissing );
  881. HRESULT EnableNotification (
  882. struct IMSMQEvent2 * Event,
  883. VARIANT * Cursor = &vtMissing,
  884. VARIANT * ReceiveTimeout = &vtMissing );
  885. HRESULT Reset ( );
  886. IMSMQMessagePtr ReceiveCurrent_v1 (
  887. VARIANT * Transaction = &vtMissing,
  888. VARIANT * WantDestinationQueue = &vtMissing,
  889. VARIANT * WantBody = &vtMissing,
  890. VARIANT * ReceiveTimeout = &vtMissing );
  891. IMSMQMessagePtr PeekNext_v1 (
  892. VARIANT * WantDestinationQueue = &vtMissing,
  893. VARIANT * WantBody = &vtMissing,
  894. VARIANT * ReceiveTimeout = &vtMissing );
  895. IMSMQMessagePtr PeekCurrent_v1 (
  896. VARIANT * WantDestinationQueue = &vtMissing,
  897. VARIANT * WantBody = &vtMissing,
  898. VARIANT * ReceiveTimeout = &vtMissing );
  899. IMSMQMessage2Ptr Receive (
  900. VARIANT * Transaction = &vtMissing,
  901. VARIANT * WantDestinationQueue = &vtMissing,
  902. VARIANT * WantBody = &vtMissing,
  903. VARIANT * ReceiveTimeout = &vtMissing,
  904. VARIANT * WantConnectorType = &vtMissing );
  905. IMSMQMessage2Ptr Peek (
  906. VARIANT * WantDestinationQueue = &vtMissing,
  907. VARIANT * WantBody = &vtMissing,
  908. VARIANT * ReceiveTimeout = &vtMissing,
  909. VARIANT * WantConnectorType = &vtMissing );
  910. IMSMQMessage2Ptr ReceiveCurrent (
  911. VARIANT * Transaction = &vtMissing,
  912. VARIANT * WantDestinationQueue = &vtMissing,
  913. VARIANT * WantBody = &vtMissing,
  914. VARIANT * ReceiveTimeout = &vtMissing,
  915. VARIANT * WantConnectorType = &vtMissing );
  916. IMSMQMessage2Ptr PeekNext (
  917. VARIANT * WantDestinationQueue = &vtMissing,
  918. VARIANT * WantBody = &vtMissing,
  919. VARIANT * ReceiveTimeout = &vtMissing,
  920. VARIANT * WantConnectorType = &vtMissing );
  921. IMSMQMessage2Ptr PeekCurrent (
  922. VARIANT * WantDestinationQueue = &vtMissing,
  923. VARIANT * WantBody = &vtMissing,
  924. VARIANT * ReceiveTimeout = &vtMissing,
  925. VARIANT * WantConnectorType = &vtMissing );
  926. IDispatchPtr GetProperties ( );
  927. //
  928. // Raw methods provided by interface
  929. //
  930. virtual HRESULT __stdcall get_Access (
  931. long * plAccess ) = 0;
  932. virtual HRESULT __stdcall get_ShareMode (
  933. long * plShareMode ) = 0;
  934. virtual HRESULT __stdcall get_QueueInfo (
  935. struct IMSMQQueueInfo2 * * ppqinfo ) = 0;
  936. virtual HRESULT __stdcall get_Handle (
  937. long * plHandle ) = 0;
  938. virtual HRESULT __stdcall get_IsOpen (
  939. short * pisOpen ) = 0;
  940. virtual HRESULT __stdcall raw_Close ( ) = 0;
  941. virtual HRESULT __stdcall raw_Receive_v1 (
  942. VARIANT * Transaction,
  943. VARIANT * WantDestinationQueue,
  944. VARIANT * WantBody,
  945. VARIANT * ReceiveTimeout,
  946. struct IMSMQMessage * * ppmsg ) = 0;
  947. virtual HRESULT __stdcall raw_Peek_v1 (
  948. VARIANT * WantDestinationQueue,
  949. VARIANT * WantBody,
  950. VARIANT * ReceiveTimeout,
  951. struct IMSMQMessage * * ppmsg ) = 0;
  952. virtual HRESULT __stdcall raw_EnableNotification (
  953. struct IMSMQEvent2 * Event,
  954. VARIANT * Cursor = &vtMissing,
  955. VARIANT * ReceiveTimeout = &vtMissing ) = 0;
  956. virtual HRESULT __stdcall raw_Reset ( ) = 0;
  957. virtual HRESULT __stdcall raw_ReceiveCurrent_v1 (
  958. VARIANT * Transaction,
  959. VARIANT * WantDestinationQueue,
  960. VARIANT * WantBody,
  961. VARIANT * ReceiveTimeout,
  962. struct IMSMQMessage * * ppmsg ) = 0;
  963. virtual HRESULT __stdcall raw_PeekNext_v1 (
  964. VARIANT * WantDestinationQueue,
  965. VARIANT * WantBody,
  966. VARIANT * ReceiveTimeout,
  967. struct IMSMQMessage * * ppmsg ) = 0;
  968. virtual HRESULT __stdcall raw_PeekCurrent_v1 (
  969. VARIANT * WantDestinationQueue,
  970. VARIANT * WantBody,
  971. VARIANT * ReceiveTimeout,
  972. struct IMSMQMessage * * ppmsg ) = 0;
  973. virtual HRESULT __stdcall raw_Receive (
  974. VARIANT * Transaction,
  975. VARIANT * WantDestinationQueue,
  976. VARIANT * WantBody,
  977. VARIANT * ReceiveTimeout,
  978. VARIANT * WantConnectorType,
  979. struct IMSMQMessage2 * * ppmsg ) = 0;
  980. virtual HRESULT __stdcall raw_Peek (
  981. VARIANT * WantDestinationQueue,
  982. VARIANT * WantBody,
  983. VARIANT * ReceiveTimeout,
  984. VARIANT * WantConnectorType,
  985. struct IMSMQMessage2 * * ppmsg ) = 0;
  986. virtual HRESULT __stdcall raw_ReceiveCurrent (
  987. VARIANT * Transaction,
  988. VARIANT * WantDestinationQueue,
  989. VARIANT * WantBody,
  990. VARIANT * ReceiveTimeout,
  991. VARIANT * WantConnectorType,
  992. struct IMSMQMessage2 * * ppmsg ) = 0;
  993. virtual HRESULT __stdcall raw_PeekNext (
  994. VARIANT * WantDestinationQueue,
  995. VARIANT * WantBody,
  996. VARIANT * ReceiveTimeout,
  997. VARIANT * WantConnectorType,
  998. struct IMSMQMessage2 * * ppmsg ) = 0;
  999. virtual HRESULT __stdcall raw_PeekCurrent (
  1000. VARIANT * WantDestinationQueue,
  1001. VARIANT * WantBody,
  1002. VARIANT * ReceiveTimeout,
  1003. VARIANT * WantConnectorType,
  1004. struct IMSMQMessage2 * * ppmsg ) = 0;
  1005. virtual HRESULT __stdcall get_Properties (
  1006. IDispatch * * ppcolProperties ) = 0;
  1007. };
  1008. struct __declspec(uuid("eba96b12-2168-11d3-898c-00e02c074f6b"))
  1009. IMSMQEvent2 : IMSMQEvent
  1010. {
  1011. //
  1012. // Property data
  1013. //
  1014. __declspec(property(get=GetProperties))
  1015. IDispatchPtr Properties;
  1016. //
  1017. // Wrapper methods for error-handling
  1018. //
  1019. IDispatchPtr GetProperties ( );
  1020. //
  1021. // Raw methods provided by interface
  1022. //
  1023. virtual HRESULT __stdcall get_Properties (
  1024. IDispatch * * ppcolProperties ) = 0;
  1025. };
  1026. struct __declspec(uuid("d9933be0-a567-11d2-b0f3-00e02c074f6b"))
  1027. IMSMQMessage2 : IDispatch
  1028. {
  1029. //
  1030. // Property data
  1031. //
  1032. __declspec(property(get=GetBody,put=PutBody))
  1033. _variant_t Body;
  1034. __declspec(property(get=GetDelivery,put=PutDelivery))
  1035. long Delivery;
  1036. __declspec(property(get=GetPriority,put=PutPriority))
  1037. long Priority;
  1038. __declspec(property(get=GetJournal,put=PutJournal))
  1039. long Journal;
  1040. __declspec(property(get=GetResponseQueueInfo_v1,put=PutRefResponseQueueInfo_v1))
  1041. IMSMQQueueInfoPtr ResponseQueueInfo_v1;
  1042. __declspec(property(get=GetAppSpecific,put=PutAppSpecific))
  1043. long AppSpecific;
  1044. __declspec(property(get=GetSourceMachineGuid))
  1045. _bstr_t SourceMachineGuid;
  1046. __declspec(property(get=GetClass))
  1047. long Class;
  1048. __declspec(property(get=GetAdminQueueInfo_v1,put=PutRefAdminQueueInfo_v1))
  1049. IMSMQQueueInfoPtr AdminQueueInfo_v1;
  1050. __declspec(property(get=GetId))
  1051. _variant_t Id;
  1052. __declspec(property(get=GetCorrelationId,put=PutCorrelationId))
  1053. _variant_t CorrelationId;
  1054. __declspec(property(get=GetAck,put=PutAck))
  1055. long Ack;
  1056. __declspec(property(get=GetLabel,put=PutLabel))
  1057. _bstr_t Label;
  1058. __declspec(property(get=GetBodyLength))
  1059. long BodyLength;
  1060. __declspec(property(get=GetMaxTimeToReachQueue,put=PutMaxTimeToReachQueue))
  1061. long MaxTimeToReachQueue;
  1062. __declspec(property(get=GetMaxTimeToReceive,put=PutMaxTimeToReceive))
  1063. long MaxTimeToReceive;
  1064. __declspec(property(get=GetEncryptAlgorithm,put=PutEncryptAlgorithm))
  1065. long EncryptAlgorithm;
  1066. __declspec(property(get=GetHashAlgorithm,put=PutHashAlgorithm))
  1067. long HashAlgorithm;
  1068. __declspec(property(get=GetSentTime))
  1069. _variant_t SentTime;
  1070. __declspec(property(get=GetArrivedTime))
  1071. _variant_t ArrivedTime;
  1072. __declspec(property(get=GetDestinationQueueInfo))
  1073. IMSMQQueueInfo2Ptr DestinationQueueInfo;
  1074. __declspec(property(get=GetSenderCertificate,put=PutSenderCertificate))
  1075. _variant_t SenderCertificate;
  1076. __declspec(property(get=GetSenderId,put=PutSenderId))
  1077. _variant_t SenderId;
  1078. __declspec(property(get=GetSenderIdType,put=PutSenderIdType))
  1079. long SenderIdType;
  1080. __declspec(property(get=GetTrace,put=PutTrace))
  1081. long Trace;
  1082. __declspec(property(get=GetPrivLevel,put=PutPrivLevel))
  1083. long PrivLevel;
  1084. __declspec(property(get=GetAuthLevel,put=PutAuthLevel))
  1085. long AuthLevel;
  1086. __declspec(property(get=GetIsAuthenticated))
  1087. short IsAuthenticated;
  1088. __declspec(property(get=GetSenderVersion))
  1089. long SenderVersion;
  1090. __declspec(property(get=GetExtension,put=PutExtension))
  1091. _variant_t Extension;
  1092. __declspec(property(get=GetConnectorTypeGuid,put=PutConnectorTypeGuid))
  1093. _bstr_t ConnectorTypeGuid;
  1094. __declspec(property(get=GetTransactionStatusQueueInfo))
  1095. IMSMQQueueInfo2Ptr TransactionStatusQueueInfo;
  1096. __declspec(property(get=GetDestinationSymmetricKey,put=PutDestinationSymmetricKey))
  1097. _variant_t DestinationSymmetricKey;
  1098. __declspec(property(get=GetSignature,put=PutSignature))
  1099. _variant_t Signature;
  1100. __declspec(property(get=GetAuthenticationProviderType,put=PutAuthenticationProviderType))
  1101. long AuthenticationProviderType;
  1102. __declspec(property(get=GetAuthenticationProviderName,put=PutAuthenticationProviderName))
  1103. _bstr_t AuthenticationProviderName;
  1104. __declspec(property(get=GetMsgClass,put=PutMsgClass))
  1105. long MsgClass;
  1106. __declspec(property(get=GetProperties))
  1107. IDispatchPtr Properties;
  1108. __declspec(property(get=GetTransactionId))
  1109. _variant_t TransactionId;
  1110. __declspec(property(get=GetIsFirstInTransaction))
  1111. short IsFirstInTransaction;
  1112. __declspec(property(get=GetIsLastInTransaction))
  1113. short IsLastInTransaction;
  1114. __declspec(property(get=GetResponseQueueInfo,put=PutRefResponseQueueInfo))
  1115. IMSMQQueueInfo2Ptr ResponseQueueInfo;
  1116. __declspec(property(get=GetAdminQueueInfo,put=PutRefAdminQueueInfo))
  1117. IMSMQQueueInfo2Ptr AdminQueueInfo;
  1118. __declspec(property(get=GetReceivedAuthenticationLevel))
  1119. short ReceivedAuthenticationLevel;
  1120. //
  1121. // Wrapper methods for error-handling
  1122. //
  1123. long GetClass ( );
  1124. long GetPrivLevel ( );
  1125. void PutPrivLevel (
  1126. long plPrivLevel );
  1127. long GetAuthLevel ( );
  1128. void PutAuthLevel (
  1129. long plAuthLevel );
  1130. short GetIsAuthenticated ( );
  1131. long GetDelivery ( );
  1132. void PutDelivery (
  1133. long plDelivery );
  1134. long GetTrace ( );
  1135. void PutTrace (
  1136. long plTrace );
  1137. long GetPriority ( );
  1138. void PutPriority (
  1139. long plPriority );
  1140. long GetJournal ( );
  1141. void PutJournal (
  1142. long plJournal );
  1143. IMSMQQueueInfoPtr GetResponseQueueInfo_v1 ( );
  1144. void PutRefResponseQueueInfo_v1 (
  1145. struct IMSMQQueueInfo * ppqinfoResponse );
  1146. long GetAppSpecific ( );
  1147. void PutAppSpecific (
  1148. long plAppSpecific );
  1149. _bstr_t GetSourceMachineGuid ( );
  1150. long GetBodyLength ( );
  1151. _variant_t GetBody ( );
  1152. void PutBody (
  1153. const _variant_t & pvarBody );
  1154. IMSMQQueueInfoPtr GetAdminQueueInfo_v1 ( );
  1155. void PutRefAdminQueueInfo_v1 (
  1156. struct IMSMQQueueInfo * ppqinfoAdmin );
  1157. _variant_t GetId ( );
  1158. _variant_t GetCorrelationId ( );
  1159. void PutCorrelationId (
  1160. const _variant_t & pvarMsgId );
  1161. long GetAck ( );
  1162. void PutAck (
  1163. long plAck );
  1164. _bstr_t GetLabel ( );
  1165. void PutLabel (
  1166. _bstr_t pbstrLabel );
  1167. long GetMaxTimeToReachQueue ( );
  1168. void PutMaxTimeToReachQueue (
  1169. long plMaxTimeToReachQueue );
  1170. long GetMaxTimeToReceive ( );
  1171. void PutMaxTimeToReceive (
  1172. long plMaxTimeToReceive );
  1173. long GetHashAlgorithm ( );
  1174. void PutHashAlgorithm (
  1175. long plHashAlg );
  1176. long GetEncryptAlgorithm ( );
  1177. void PutEncryptAlgorithm (
  1178. long plEncryptAlg );
  1179. _variant_t GetSentTime ( );
  1180. _variant_t GetArrivedTime ( );
  1181. IMSMQQueueInfo2Ptr GetDestinationQueueInfo ( );
  1182. _variant_t GetSenderCertificate ( );
  1183. void PutSenderCertificate (
  1184. const _variant_t & pvarSenderCert );
  1185. _variant_t GetSenderId ( );
  1186. long GetSenderIdType ( );
  1187. void PutSenderIdType (
  1188. long plSenderIdType );
  1189. HRESULT Send (
  1190. struct IMSMQQueue2 * DestinationQueue,
  1191. VARIANT * Transaction = &vtMissing );
  1192. HRESULT AttachCurrentSecurityContext ( );
  1193. long GetSenderVersion ( );
  1194. _variant_t GetExtension ( );
  1195. void PutExtension (
  1196. const _variant_t & pvarExtension );
  1197. _bstr_t GetConnectorTypeGuid ( );
  1198. void PutConnectorTypeGuid (
  1199. _bstr_t pbstrGuidConnectorType );
  1200. IMSMQQueueInfo2Ptr GetTransactionStatusQueueInfo ( );
  1201. _variant_t GetDestinationSymmetricKey ( );
  1202. void PutDestinationSymmetricKey (
  1203. const _variant_t & pvarDestSymmKey );
  1204. _variant_t GetSignature ( );
  1205. void PutSignature (
  1206. const _variant_t & pvarSignature );
  1207. long GetAuthenticationProviderType ( );
  1208. void PutAuthenticationProviderType (
  1209. long plAuthProvType );
  1210. _bstr_t GetAuthenticationProviderName ( );
  1211. void PutAuthenticationProviderName (
  1212. _bstr_t pbstrAuthProvName );
  1213. void PutSenderId (
  1214. const _variant_t & pvarSenderId );
  1215. long GetMsgClass ( );
  1216. void PutMsgClass (
  1217. long plMsgClass );
  1218. IDispatchPtr GetProperties ( );
  1219. _variant_t GetTransactionId ( );
  1220. short GetIsFirstInTransaction ( );
  1221. short GetIsLastInTransaction ( );
  1222. IMSMQQueueInfo2Ptr GetResponseQueueInfo ( );
  1223. void PutRefResponseQueueInfo (
  1224. struct IMSMQQueueInfo2 * ppqinfoResponse );
  1225. IMSMQQueueInfo2Ptr GetAdminQueueInfo ( );
  1226. void PutRefAdminQueueInfo (
  1227. struct IMSMQQueueInfo2 * ppqinfoAdmin );
  1228. short GetReceivedAuthenticationLevel ( );
  1229. //
  1230. // Raw methods provided by interface
  1231. //
  1232. virtual HRESULT __stdcall get_Class (
  1233. long * plClass ) = 0;
  1234. virtual HRESULT __stdcall get_PrivLevel (
  1235. long * plPrivLevel ) = 0;
  1236. virtual HRESULT __stdcall put_PrivLevel (
  1237. long plPrivLevel ) = 0;
  1238. virtual HRESULT __stdcall get_AuthLevel (
  1239. long * plAuthLevel ) = 0;
  1240. virtual HRESULT __stdcall put_AuthLevel (
  1241. long plAuthLevel ) = 0;
  1242. virtual HRESULT __stdcall get_IsAuthenticated (
  1243. short * pisAuthenticated ) = 0;
  1244. virtual HRESULT __stdcall get_Delivery (
  1245. long * plDelivery ) = 0;
  1246. virtual HRESULT __stdcall put_Delivery (
  1247. long plDelivery ) = 0;
  1248. virtual HRESULT __stdcall get_Trace (
  1249. long * plTrace ) = 0;
  1250. virtual HRESULT __stdcall put_Trace (
  1251. long plTrace ) = 0;
  1252. virtual HRESULT __stdcall get_Priority (
  1253. long * plPriority ) = 0;
  1254. virtual HRESULT __stdcall put_Priority (
  1255. long plPriority ) = 0;
  1256. virtual HRESULT __stdcall get_Journal (
  1257. long * plJournal ) = 0;
  1258. virtual HRESULT __stdcall put_Journal (
  1259. long plJournal ) = 0;
  1260. virtual HRESULT __stdcall get_ResponseQueueInfo_v1 (
  1261. struct IMSMQQueueInfo * * ppqinfoResponse ) = 0;
  1262. virtual HRESULT __stdcall putref_ResponseQueueInfo_v1 (
  1263. struct IMSMQQueueInfo * ppqinfoResponse ) = 0;
  1264. virtual HRESULT __stdcall get_AppSpecific (
  1265. long * plAppSpecific ) = 0;
  1266. virtual HRESULT __stdcall put_AppSpecific (
  1267. long plAppSpecific ) = 0;
  1268. virtual HRESULT __stdcall get_SourceMachineGuid (
  1269. BSTR * pbstrGuidSrcMachine ) = 0;
  1270. virtual HRESULT __stdcall get_BodyLength (
  1271. long * pcbBody ) = 0;
  1272. virtual HRESULT __stdcall get_Body (
  1273. VARIANT * pvarBody ) = 0;
  1274. virtual HRESULT __stdcall put_Body (
  1275. VARIANT pvarBody ) = 0;
  1276. virtual HRESULT __stdcall get_AdminQueueInfo_v1 (
  1277. struct IMSMQQueueInfo * * ppqinfoAdmin ) = 0;
  1278. virtual HRESULT __stdcall putref_AdminQueueInfo_v1 (
  1279. struct IMSMQQueueInfo * ppqinfoAdmin ) = 0;
  1280. virtual HRESULT __stdcall get_Id (
  1281. VARIANT * pvarMsgId ) = 0;
  1282. virtual HRESULT __stdcall get_CorrelationId (
  1283. VARIANT * pvarMsgId ) = 0;
  1284. virtual HRESULT __stdcall put_CorrelationId (
  1285. VARIANT pvarMsgId ) = 0;
  1286. virtual HRESULT __stdcall get_Ack (
  1287. long * plAck ) = 0;
  1288. virtual HRESULT __stdcall put_Ack (
  1289. long plAck ) = 0;
  1290. virtual HRESULT __stdcall get_Label (
  1291. BSTR * pbstrLabel ) = 0;
  1292. virtual HRESULT __stdcall put_Label (
  1293. BSTR pbstrLabel ) = 0;
  1294. virtual HRESULT __stdcall get_MaxTimeToReachQueue (
  1295. long * plMaxTimeToReachQueue ) = 0;
  1296. virtual HRESULT __stdcall put_MaxTimeToReachQueue (
  1297. long plMaxTimeToReachQueue ) = 0;
  1298. virtual HRESULT __stdcall get_MaxTimeToReceive (
  1299. long * plMaxTimeToReceive ) = 0;
  1300. virtual HRESULT __stdcall put_MaxTimeToReceive (
  1301. long plMaxTimeToReceive ) = 0;
  1302. virtual HRESULT __stdcall get_HashAlgorithm (
  1303. long * plHashAlg ) = 0;
  1304. virtual HRESULT __stdcall put_HashAlgorithm (
  1305. long plHashAlg ) = 0;
  1306. virtual HRESULT __stdcall get_EncryptAlgorithm (
  1307. long * plEncryptAlg ) = 0;
  1308. virtual HRESULT __stdcall put_EncryptAlgorithm (
  1309. long plEncryptAlg ) = 0;
  1310. virtual HRESULT __stdcall get_SentTime (
  1311. VARIANT * pvarSentTime ) = 0;
  1312. virtual HRESULT __stdcall get_ArrivedTime (
  1313. VARIANT * plArrivedTime ) = 0;
  1314. virtual HRESULT __stdcall get_DestinationQueueInfo (
  1315. struct IMSMQQueueInfo2 * * ppqinfoDest ) = 0;
  1316. virtual HRESULT __stdcall get_SenderCertificate (
  1317. VARIANT * pvarSenderCert ) = 0;
  1318. virtual HRESULT __stdcall put_SenderCertificate (
  1319. VARIANT pvarSenderCert ) = 0;
  1320. virtual HRESULT __stdcall get_SenderId (
  1321. VARIANT * pvarSenderId ) = 0;
  1322. virtual HRESULT __stdcall get_SenderIdType (
  1323. long * plSenderIdType ) = 0;
  1324. virtual HRESULT __stdcall put_SenderIdType (
  1325. long plSenderIdType ) = 0;
  1326. virtual HRESULT __stdcall raw_Send (
  1327. struct IMSMQQueue2 * DestinationQueue,
  1328. VARIANT * Transaction = &vtMissing ) = 0;
  1329. virtual HRESULT __stdcall raw_AttachCurrentSecurityContext ( ) = 0;
  1330. virtual HRESULT __stdcall get_SenderVersion (
  1331. long * plSenderVersion ) = 0;
  1332. virtual HRESULT __stdcall get_Extension (
  1333. VARIANT * pvarExtension ) = 0;
  1334. virtual HRESULT __stdcall put_Extension (
  1335. VARIANT pvarExtension ) = 0;
  1336. virtual HRESULT __stdcall get_ConnectorTypeGuid (
  1337. BSTR * pbstrGuidConnectorType ) = 0;
  1338. virtual HRESULT __stdcall put_ConnectorTypeGuid (
  1339. BSTR pbstrGuidConnectorType ) = 0;
  1340. virtual HRESULT __stdcall get_TransactionStatusQueueInfo (
  1341. struct IMSMQQueueInfo2 * * ppqinfoXactStatus ) = 0;
  1342. virtual HRESULT __stdcall get_DestinationSymmetricKey (
  1343. VARIANT * pvarDestSymmKey ) = 0;
  1344. virtual HRESULT __stdcall put_DestinationSymmetricKey (
  1345. VARIANT pvarDestSymmKey ) = 0;
  1346. virtual HRESULT __stdcall get_Signature (
  1347. VARIANT * pvarSignature ) = 0;
  1348. virtual HRESULT __stdcall put_Signature (
  1349. VARIANT pvarSignature ) = 0;
  1350. virtual HRESULT __stdcall get_AuthenticationProviderType (
  1351. long * plAuthProvType ) = 0;
  1352. virtual HRESULT __stdcall put_AuthenticationProviderType (
  1353. long plAuthProvType ) = 0;
  1354. virtual HRESULT __stdcall get_AuthenticationProviderName (
  1355. BSTR * pbstrAuthProvName ) = 0;
  1356. virtual HRESULT __stdcall put_AuthenticationProviderName (
  1357. BSTR pbstrAuthProvName ) = 0;
  1358. virtual HRESULT __stdcall put_SenderId (
  1359. VARIANT pvarSenderId ) = 0;
  1360. virtual HRESULT __stdcall get_MsgClass (
  1361. long * plMsgClass ) = 0;
  1362. virtual HRESULT __stdcall put_MsgClass (
  1363. long plMsgClass ) = 0;
  1364. virtual HRESULT __stdcall get_Properties (
  1365. IDispatch * * ppcolProperties ) = 0;
  1366. virtual HRESULT __stdcall get_TransactionId (
  1367. VARIANT * pvarXactId ) = 0;
  1368. virtual HRESULT __stdcall get_IsFirstInTransaction (
  1369. short * pisFirstInXact ) = 0;
  1370. virtual HRESULT __stdcall get_IsLastInTransaction (
  1371. short * pisLastInXact ) = 0;
  1372. virtual HRESULT __stdcall get_ResponseQueueInfo (
  1373. struct IMSMQQueueInfo2 * * ppqinfoResponse ) = 0;
  1374. virtual HRESULT __stdcall putref_ResponseQueueInfo (
  1375. struct IMSMQQueueInfo2 * ppqinfoResponse ) = 0;
  1376. virtual HRESULT __stdcall get_AdminQueueInfo (
  1377. struct IMSMQQueueInfo2 * * ppqinfoAdmin ) = 0;
  1378. virtual HRESULT __stdcall putref_AdminQueueInfo (
  1379. struct IMSMQQueueInfo2 * ppqinfoAdmin ) = 0;
  1380. virtual HRESULT __stdcall get_ReceivedAuthenticationLevel (
  1381. short * psReceivedAuthenticationLevel ) = 0;
  1382. };
  1383. struct __declspec(uuid("eba96b1d-2168-11d3-898c-00e02c074f6b"))
  1384. IMSMQQueueInfo3 : IDispatch
  1385. {
  1386. //
  1387. // Property data
  1388. //
  1389. __declspec(property(get=GetQueueGuid))
  1390. _bstr_t QueueGuid;
  1391. __declspec(property(get=GetServiceTypeGuid,put=PutServiceTypeGuid))
  1392. _bstr_t ServiceTypeGuid;
  1393. __declspec(property(get=GetLabel,put=PutLabel))
  1394. _bstr_t Label;
  1395. __declspec(property(get=GetPathName,put=PutPathName))
  1396. _bstr_t PathName;
  1397. __declspec(property(get=GetFormatName,put=PutFormatName))
  1398. _bstr_t FormatName;
  1399. __declspec(property(get=GetIsTransactional))
  1400. short IsTransactional;
  1401. __declspec(property(get=GetPrivLevel,put=PutPrivLevel))
  1402. long PrivLevel;
  1403. __declspec(property(get=GetJournal,put=PutJournal))
  1404. long Journal;
  1405. __declspec(property(get=GetBasePriority,put=PutBasePriority))
  1406. long BasePriority;
  1407. __declspec(property(get=GetCreateTime))
  1408. _variant_t CreateTime;
  1409. __declspec(property(get=GetModifyTime))
  1410. _variant_t ModifyTime;
  1411. __declspec(property(get=GetAuthenticate,put=PutAuthenticate))
  1412. long Authenticate;
  1413. __declspec(property(get=GetQuota,put=PutQuota))
  1414. long Quota;
  1415. __declspec(property(get=GetJournalQuota,put=PutJournalQuota))
  1416. long JournalQuota;
  1417. __declspec(property(get=GetIsWorldReadable))
  1418. short IsWorldReadable;
  1419. __declspec(property(get=GetPathNameDNS))
  1420. _bstr_t PathNameDNS;
  1421. __declspec(property(get=GetProperties))
  1422. IDispatchPtr Properties;
  1423. __declspec(property(get=GetSecurity,put=PutSecurity))
  1424. _variant_t Security;
  1425. __declspec(property(get=GetADsPath))
  1426. _bstr_t ADsPath;
  1427. __declspec(property(get=GetIsTransactional2))
  1428. VARIANT_BOOL IsTransactional2;
  1429. __declspec(property(get=GetIsWorldReadable2))
  1430. VARIANT_BOOL IsWorldReadable2;
  1431. __declspec(property(get=GetMulticastAddress,put=PutMulticastAddress))
  1432. _bstr_t MulticastAddress;
  1433. //
  1434. // Wrapper methods for error-handling
  1435. //
  1436. _bstr_t GetQueueGuid ( );
  1437. _bstr_t GetServiceTypeGuid ( );
  1438. void PutServiceTypeGuid (
  1439. _bstr_t pbstrGuidServiceType );
  1440. _bstr_t GetLabel ( );
  1441. void PutLabel (
  1442. _bstr_t pbstrLabel );
  1443. _bstr_t GetPathName ( );
  1444. void PutPathName (
  1445. _bstr_t pbstrPathName );
  1446. _bstr_t GetFormatName ( );
  1447. void PutFormatName (
  1448. _bstr_t pbstrFormatName );
  1449. short GetIsTransactional ( );
  1450. long GetPrivLevel ( );
  1451. void PutPrivLevel (
  1452. long plPrivLevel );
  1453. long GetJournal ( );
  1454. void PutJournal (
  1455. long plJournal );
  1456. long GetQuota ( );
  1457. void PutQuota (
  1458. long plQuota );
  1459. long GetBasePriority ( );
  1460. void PutBasePriority (
  1461. long plBasePriority );
  1462. _variant_t GetCreateTime ( );
  1463. _variant_t GetModifyTime ( );
  1464. long GetAuthenticate ( );
  1465. void PutAuthenticate (
  1466. long plAuthenticate );
  1467. long GetJournalQuota ( );
  1468. void PutJournalQuota (
  1469. long plJournalQuota );
  1470. short GetIsWorldReadable ( );
  1471. HRESULT Create (
  1472. VARIANT * IsTransactional = &vtMissing,
  1473. VARIANT * IsWorldReadable = &vtMissing );
  1474. HRESULT Delete ( );
  1475. IMSMQQueue3Ptr Open (
  1476. long Access,
  1477. long ShareMode );
  1478. HRESULT Refresh ( );
  1479. HRESULT Update ( );
  1480. _bstr_t GetPathNameDNS ( );
  1481. IDispatchPtr GetProperties ( );
  1482. _variant_t GetSecurity ( );
  1483. void PutSecurity (
  1484. const _variant_t & pvarSecurity );
  1485. VARIANT_BOOL GetIsTransactional2 ( );
  1486. VARIANT_BOOL GetIsWorldReadable2 ( );
  1487. _bstr_t GetMulticastAddress ( );
  1488. void PutMulticastAddress (
  1489. _bstr_t pbstrMulticastAddress );
  1490. _bstr_t GetADsPath ( );
  1491. //
  1492. // Raw methods provided by interface
  1493. //
  1494. virtual HRESULT __stdcall get_QueueGuid (
  1495. BSTR * pbstrGuidQueue ) = 0;
  1496. virtual HRESULT __stdcall get_ServiceTypeGuid (
  1497. BSTR * pbstrGuidServiceType ) = 0;
  1498. virtual HRESULT __stdcall put_ServiceTypeGuid (
  1499. BSTR pbstrGuidServiceType ) = 0;
  1500. virtual HRESULT __stdcall get_Label (
  1501. BSTR * pbstrLabel ) = 0;
  1502. virtual HRESULT __stdcall put_Label (
  1503. BSTR pbstrLabel ) = 0;
  1504. virtual HRESULT __stdcall get_PathName (
  1505. BSTR * pbstrPathName ) = 0;
  1506. virtual HRESULT __stdcall put_PathName (
  1507. BSTR pbstrPathName ) = 0;
  1508. virtual HRESULT __stdcall get_FormatName (
  1509. BSTR * pbstrFormatName ) = 0;
  1510. virtual HRESULT __stdcall put_FormatName (
  1511. BSTR pbstrFormatName ) = 0;
  1512. virtual HRESULT __stdcall get_IsTransactional (
  1513. short * pisTransactional ) = 0;
  1514. virtual HRESULT __stdcall get_PrivLevel (
  1515. long * plPrivLevel ) = 0;
  1516. virtual HRESULT __stdcall put_PrivLevel (
  1517. long plPrivLevel ) = 0;
  1518. virtual HRESULT __stdcall get_Journal (
  1519. long * plJournal ) = 0;
  1520. virtual HRESULT __stdcall put_Journal (
  1521. long plJournal ) = 0;
  1522. virtual HRESULT __stdcall get_Quota (
  1523. long * plQuota ) = 0;
  1524. virtual HRESULT __stdcall put_Quota (
  1525. long plQuota ) = 0;
  1526. virtual HRESULT __stdcall get_BasePriority (
  1527. long * plBasePriority ) = 0;
  1528. virtual HRESULT __stdcall put_BasePriority (
  1529. long plBasePriority ) = 0;
  1530. virtual HRESULT __stdcall get_CreateTime (
  1531. VARIANT * pvarCreateTime ) = 0;
  1532. virtual HRESULT __stdcall get_ModifyTime (
  1533. VARIANT * pvarModifyTime ) = 0;
  1534. virtual HRESULT __stdcall get_Authenticate (
  1535. long * plAuthenticate ) = 0;
  1536. virtual HRESULT __stdcall put_Authenticate (
  1537. long plAuthenticate ) = 0;
  1538. virtual HRESULT __stdcall get_JournalQuota (
  1539. long * plJournalQuota ) = 0;
  1540. virtual HRESULT __stdcall put_JournalQuota (
  1541. long plJournalQuota ) = 0;
  1542. virtual HRESULT __stdcall get_IsWorldReadable (
  1543. short * pisWorldReadable ) = 0;
  1544. virtual HRESULT __stdcall raw_Create (
  1545. VARIANT * IsTransactional = &vtMissing,
  1546. VARIANT * IsWorldReadable = &vtMissing ) = 0;
  1547. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  1548. virtual HRESULT __stdcall raw_Open (
  1549. long Access,
  1550. long ShareMode,
  1551. struct IMSMQQueue3 * * ppq ) = 0;
  1552. virtual HRESULT __stdcall raw_Refresh ( ) = 0;
  1553. virtual HRESULT __stdcall raw_Update ( ) = 0;
  1554. virtual HRESULT __stdcall get_PathNameDNS (
  1555. BSTR * pbstrPathNameDNS ) = 0;
  1556. virtual HRESULT __stdcall get_Properties (
  1557. IDispatch * * ppcolProperties ) = 0;
  1558. virtual HRESULT __stdcall get_Security (
  1559. VARIANT * pvarSecurity ) = 0;
  1560. virtual HRESULT __stdcall put_Security (
  1561. VARIANT pvarSecurity ) = 0;
  1562. virtual HRESULT __stdcall get_IsTransactional2 (
  1563. VARIANT_BOOL * pisTransactional ) = 0;
  1564. virtual HRESULT __stdcall get_IsWorldReadable2 (
  1565. VARIANT_BOOL * pisWorldReadable ) = 0;
  1566. virtual HRESULT __stdcall get_MulticastAddress (
  1567. BSTR * pbstrMulticastAddress ) = 0;
  1568. virtual HRESULT __stdcall put_MulticastAddress (
  1569. BSTR pbstrMulticastAddress ) = 0;
  1570. virtual HRESULT __stdcall get_ADsPath (
  1571. BSTR * pbstrADsPath ) = 0;
  1572. };
  1573. struct __declspec(uuid("eba96b1b-2168-11d3-898c-00e02c074f6b"))
  1574. IMSMQQueue3 : IDispatch
  1575. {
  1576. //
  1577. // Property data
  1578. //
  1579. __declspec(property(get=GetHandle))
  1580. long Handle;
  1581. __declspec(property(get=GetAccess))
  1582. long Access;
  1583. __declspec(property(get=GetShareMode))
  1584. long ShareMode;
  1585. __declspec(property(get=GetQueueInfo))
  1586. IMSMQQueueInfo3Ptr QueueInfo;
  1587. __declspec(property(get=GetIsOpen))
  1588. short IsOpen;
  1589. __declspec(property(get=GetProperties))
  1590. IDispatchPtr Properties;
  1591. __declspec(property(get=GetHandle2))
  1592. _variant_t Handle2;
  1593. __declspec(property(get=GetIsOpen2))
  1594. VARIANT_BOOL IsOpen2;
  1595. //
  1596. // Wrapper methods for error-handling
  1597. //
  1598. long GetAccess ( );
  1599. long GetShareMode ( );
  1600. IMSMQQueueInfo3Ptr GetQueueInfo ( );
  1601. long GetHandle ( );
  1602. short GetIsOpen ( );
  1603. HRESULT Close ( );
  1604. IMSMQMessagePtr Receive_v1 (
  1605. VARIANT * Transaction = &vtMissing,
  1606. VARIANT * WantDestinationQueue = &vtMissing,
  1607. VARIANT * WantBody = &vtMissing,
  1608. VARIANT * ReceiveTimeout = &vtMissing );
  1609. IMSMQMessagePtr Peek_v1 (
  1610. VARIANT * WantDestinationQueue = &vtMissing,
  1611. VARIANT * WantBody = &vtMissing,
  1612. VARIANT * ReceiveTimeout = &vtMissing );
  1613. HRESULT EnableNotification (
  1614. struct IMSMQEvent3 * Event,
  1615. VARIANT * Cursor = &vtMissing,
  1616. VARIANT * ReceiveTimeout = &vtMissing );
  1617. HRESULT Reset ( );
  1618. IMSMQMessagePtr ReceiveCurrent_v1 (
  1619. VARIANT * Transaction = &vtMissing,
  1620. VARIANT * WantDestinationQueue = &vtMissing,
  1621. VARIANT * WantBody = &vtMissing,
  1622. VARIANT * ReceiveTimeout = &vtMissing );
  1623. IMSMQMessagePtr PeekNext_v1 (
  1624. VARIANT * WantDestinationQueue = &vtMissing,
  1625. VARIANT * WantBody = &vtMissing,
  1626. VARIANT * ReceiveTimeout = &vtMissing );
  1627. IMSMQMessagePtr PeekCurrent_v1 (
  1628. VARIANT * WantDestinationQueue = &vtMissing,
  1629. VARIANT * WantBody = &vtMissing,
  1630. VARIANT * ReceiveTimeout = &vtMissing );
  1631. IMSMQMessage3Ptr Receive (
  1632. VARIANT * Transaction = &vtMissing,
  1633. VARIANT * WantDestinationQueue = &vtMissing,
  1634. VARIANT * WantBody = &vtMissing,
  1635. VARIANT * ReceiveTimeout = &vtMissing,
  1636. VARIANT * WantConnectorType = &vtMissing );
  1637. IMSMQMessage3Ptr Peek (
  1638. VARIANT * WantDestinationQueue = &vtMissing,
  1639. VARIANT * WantBody = &vtMissing,
  1640. VARIANT * ReceiveTimeout = &vtMissing,
  1641. VARIANT * WantConnectorType = &vtMissing );
  1642. IMSMQMessage3Ptr ReceiveCurrent (
  1643. VARIANT * Transaction = &vtMissing,
  1644. VARIANT * WantDestinationQueue = &vtMissing,
  1645. VARIANT * WantBody = &vtMissing,
  1646. VARIANT * ReceiveTimeout = &vtMissing,
  1647. VARIANT * WantConnectorType = &vtMissing );
  1648. IMSMQMessage3Ptr PeekNext (
  1649. VARIANT * WantDestinationQueue = &vtMissing,
  1650. VARIANT * WantBody = &vtMissing,
  1651. VARIANT * ReceiveTimeout = &vtMissing,
  1652. VARIANT * WantConnectorType = &vtMissing );
  1653. IMSMQMessage3Ptr PeekCurrent (
  1654. VARIANT * WantDestinationQueue = &vtMissing,
  1655. VARIANT * WantBody = &vtMissing,
  1656. VARIANT * ReceiveTimeout = &vtMissing,
  1657. VARIANT * WantConnectorType = &vtMissing );
  1658. IDispatchPtr GetProperties ( );
  1659. _variant_t GetHandle2 ( );
  1660. IMSMQMessage3Ptr ReceiveByLookupId (
  1661. const _variant_t & LookupId,
  1662. VARIANT * Transaction = &vtMissing,
  1663. VARIANT * WantDestinationQueue = &vtMissing,
  1664. VARIANT * WantBody = &vtMissing,
  1665. VARIANT * WantConnectorType = &vtMissing );
  1666. IMSMQMessage3Ptr ReceiveNextByLookupId (
  1667. const _variant_t & LookupId,
  1668. VARIANT * Transaction = &vtMissing,
  1669. VARIANT * WantDestinationQueue = &vtMissing,
  1670. VARIANT * WantBody = &vtMissing,
  1671. VARIANT * WantConnectorType = &vtMissing );
  1672. IMSMQMessage3Ptr ReceivePreviousByLookupId (
  1673. const _variant_t & LookupId,
  1674. VARIANT * Transaction = &vtMissing,
  1675. VARIANT * WantDestinationQueue = &vtMissing,
  1676. VARIANT * WantBody = &vtMissing,
  1677. VARIANT * WantConnectorType = &vtMissing );
  1678. IMSMQMessage3Ptr ReceiveFirstByLookupId (
  1679. VARIANT * Transaction = &vtMissing,
  1680. VARIANT * WantDestinationQueue = &vtMissing,
  1681. VARIANT * WantBody = &vtMissing,
  1682. VARIANT * WantConnectorType = &vtMissing );
  1683. IMSMQMessage3Ptr ReceiveLastByLookupId (
  1684. VARIANT * Transaction = &vtMissing,
  1685. VARIANT * WantDestinationQueue = &vtMissing,
  1686. VARIANT * WantBody = &vtMissing,
  1687. VARIANT * WantConnectorType = &vtMissing );
  1688. IMSMQMessage3Ptr PeekByLookupId (
  1689. const _variant_t & LookupId,
  1690. VARIANT * WantDestinationQueue = &vtMissing,
  1691. VARIANT * WantBody = &vtMissing,
  1692. VARIANT * WantConnectorType = &vtMissing );
  1693. IMSMQMessage3Ptr PeekNextByLookupId (
  1694. const _variant_t & LookupId,
  1695. VARIANT * WantDestinationQueue = &vtMissing,
  1696. VARIANT * WantBody = &vtMissing,
  1697. VARIANT * WantConnectorType = &vtMissing );
  1698. IMSMQMessage3Ptr PeekPreviousByLookupId (
  1699. const _variant_t & LookupId,
  1700. VARIANT * WantDestinationQueue = &vtMissing,
  1701. VARIANT * WantBody = &vtMissing,
  1702. VARIANT * WantConnectorType = &vtMissing );
  1703. IMSMQMessage3Ptr PeekFirstByLookupId (
  1704. VARIANT * WantDestinationQueue = &vtMissing,
  1705. VARIANT * WantBody = &vtMissing,
  1706. VARIANT * WantConnectorType = &vtMissing );
  1707. IMSMQMessage3Ptr PeekLastByLookupId (
  1708. VARIANT * WantDestinationQueue = &vtMissing,
  1709. VARIANT * WantBody = &vtMissing,
  1710. VARIANT * WantConnectorType = &vtMissing );
  1711. HRESULT Purge ( );
  1712. VARIANT_BOOL GetIsOpen2 ( );
  1713. //
  1714. // Raw methods provided by interface
  1715. //
  1716. virtual HRESULT __stdcall get_Access (
  1717. long * plAccess ) = 0;
  1718. virtual HRESULT __stdcall get_ShareMode (
  1719. long * plShareMode ) = 0;
  1720. virtual HRESULT __stdcall get_QueueInfo (
  1721. struct IMSMQQueueInfo3 * * ppqinfo ) = 0;
  1722. virtual HRESULT __stdcall get_Handle (
  1723. long * plHandle ) = 0;
  1724. virtual HRESULT __stdcall get_IsOpen (
  1725. short * pisOpen ) = 0;
  1726. virtual HRESULT __stdcall raw_Close ( ) = 0;
  1727. virtual HRESULT __stdcall raw_Receive_v1 (
  1728. VARIANT * Transaction,
  1729. VARIANT * WantDestinationQueue,
  1730. VARIANT * WantBody,
  1731. VARIANT * ReceiveTimeout,
  1732. struct IMSMQMessage * * ppmsg ) = 0;
  1733. virtual HRESULT __stdcall raw_Peek_v1 (
  1734. VARIANT * WantDestinationQueue,
  1735. VARIANT * WantBody,
  1736. VARIANT * ReceiveTimeout,
  1737. struct IMSMQMessage * * ppmsg ) = 0;
  1738. virtual HRESULT __stdcall raw_EnableNotification (
  1739. struct IMSMQEvent3 * Event,
  1740. VARIANT * Cursor = &vtMissing,
  1741. VARIANT * ReceiveTimeout = &vtMissing ) = 0;
  1742. virtual HRESULT __stdcall raw_Reset ( ) = 0;
  1743. virtual HRESULT __stdcall raw_ReceiveCurrent_v1 (
  1744. VARIANT * Transaction,
  1745. VARIANT * WantDestinationQueue,
  1746. VARIANT * WantBody,
  1747. VARIANT * ReceiveTimeout,
  1748. struct IMSMQMessage * * ppmsg ) = 0;
  1749. virtual HRESULT __stdcall raw_PeekNext_v1 (
  1750. VARIANT * WantDestinationQueue,
  1751. VARIANT * WantBody,
  1752. VARIANT * ReceiveTimeout,
  1753. struct IMSMQMessage * * ppmsg ) = 0;
  1754. virtual HRESULT __stdcall raw_PeekCurrent_v1 (
  1755. VARIANT * WantDestinationQueue,
  1756. VARIANT * WantBody,
  1757. VARIANT * ReceiveTimeout,
  1758. struct IMSMQMessage * * ppmsg ) = 0;
  1759. virtual HRESULT __stdcall raw_Receive (
  1760. VARIANT * Transaction,
  1761. VARIANT * WantDestinationQueue,
  1762. VARIANT * WantBody,
  1763. VARIANT * ReceiveTimeout,
  1764. VARIANT * WantConnectorType,
  1765. struct IMSMQMessage3 * * ppmsg ) = 0;
  1766. virtual HRESULT __stdcall raw_Peek (
  1767. VARIANT * WantDestinationQueue,
  1768. VARIANT * WantBody,
  1769. VARIANT * ReceiveTimeout,
  1770. VARIANT * WantConnectorType,
  1771. struct IMSMQMessage3 * * ppmsg ) = 0;
  1772. virtual HRESULT __stdcall raw_ReceiveCurrent (
  1773. VARIANT * Transaction,
  1774. VARIANT * WantDestinationQueue,
  1775. VARIANT * WantBody,
  1776. VARIANT * ReceiveTimeout,
  1777. VARIANT * WantConnectorType,
  1778. struct IMSMQMessage3 * * ppmsg ) = 0;
  1779. virtual HRESULT __stdcall raw_PeekNext (
  1780. VARIANT * WantDestinationQueue,
  1781. VARIANT * WantBody,
  1782. VARIANT * ReceiveTimeout,
  1783. VARIANT * WantConnectorType,
  1784. struct IMSMQMessage3 * * ppmsg ) = 0;
  1785. virtual HRESULT __stdcall raw_PeekCurrent (
  1786. VARIANT * WantDestinationQueue,
  1787. VARIANT * WantBody,
  1788. VARIANT * ReceiveTimeout,
  1789. VARIANT * WantConnectorType,
  1790. struct IMSMQMessage3 * * ppmsg ) = 0;
  1791. virtual HRESULT __stdcall get_Properties (
  1792. IDispatch * * ppcolProperties ) = 0;
  1793. virtual HRESULT __stdcall get_Handle2 (
  1794. VARIANT * pvarHandle ) = 0;
  1795. virtual HRESULT __stdcall raw_ReceiveByLookupId (
  1796. VARIANT LookupId,
  1797. VARIANT * Transaction,
  1798. VARIANT * WantDestinationQueue,
  1799. VARIANT * WantBody,
  1800. VARIANT * WantConnectorType,
  1801. struct IMSMQMessage3 * * ppmsg ) = 0;
  1802. virtual HRESULT __stdcall raw_ReceiveNextByLookupId (
  1803. VARIANT LookupId,
  1804. VARIANT * Transaction,
  1805. VARIANT * WantDestinationQueue,
  1806. VARIANT * WantBody,
  1807. VARIANT * WantConnectorType,
  1808. struct IMSMQMessage3 * * ppmsg ) = 0;
  1809. virtual HRESULT __stdcall raw_ReceivePreviousByLookupId (
  1810. VARIANT LookupId,
  1811. VARIANT * Transaction,
  1812. VARIANT * WantDestinationQueue,
  1813. VARIANT * WantBody,
  1814. VARIANT * WantConnectorType,
  1815. struct IMSMQMessage3 * * ppmsg ) = 0;
  1816. virtual HRESULT __stdcall raw_ReceiveFirstByLookupId (
  1817. VARIANT * Transaction,
  1818. VARIANT * WantDestinationQueue,
  1819. VARIANT * WantBody,
  1820. VARIANT * WantConnectorType,
  1821. struct IMSMQMessage3 * * ppmsg ) = 0;
  1822. virtual HRESULT __stdcall raw_ReceiveLastByLookupId (
  1823. VARIANT * Transaction,
  1824. VARIANT * WantDestinationQueue,
  1825. VARIANT * WantBody,
  1826. VARIANT * WantConnectorType,
  1827. struct IMSMQMessage3 * * ppmsg ) = 0;
  1828. virtual HRESULT __stdcall raw_PeekByLookupId (
  1829. VARIANT LookupId,
  1830. VARIANT * WantDestinationQueue,
  1831. VARIANT * WantBody,
  1832. VARIANT * WantConnectorType,
  1833. struct IMSMQMessage3 * * ppmsg ) = 0;
  1834. virtual HRESULT __stdcall raw_PeekNextByLookupId (
  1835. VARIANT LookupId,
  1836. VARIANT * WantDestinationQueue,
  1837. VARIANT * WantBody,
  1838. VARIANT * WantConnectorType,
  1839. struct IMSMQMessage3 * * ppmsg ) = 0;
  1840. virtual HRESULT __stdcall raw_PeekPreviousByLookupId (
  1841. VARIANT LookupId,
  1842. VARIANT * WantDestinationQueue,
  1843. VARIANT * WantBody,
  1844. VARIANT * WantConnectorType,
  1845. struct IMSMQMessage3 * * ppmsg ) = 0;
  1846. virtual HRESULT __stdcall raw_PeekFirstByLookupId (
  1847. VARIANT * WantDestinationQueue,
  1848. VARIANT * WantBody,
  1849. VARIANT * WantConnectorType,
  1850. struct IMSMQMessage3 * * ppmsg ) = 0;
  1851. virtual HRESULT __stdcall raw_PeekLastByLookupId (
  1852. VARIANT * WantDestinationQueue,
  1853. VARIANT * WantBody,
  1854. VARIANT * WantConnectorType,
  1855. struct IMSMQMessage3 * * ppmsg ) = 0;
  1856. virtual HRESULT __stdcall raw_Purge ( ) = 0;
  1857. virtual HRESULT __stdcall get_IsOpen2 (
  1858. VARIANT_BOOL * pisOpen ) = 0;
  1859. };
  1860. struct __declspec(uuid("eba96b1c-2168-11d3-898c-00e02c074f6b"))
  1861. IMSMQEvent3 : IMSMQEvent2
  1862. {};
  1863. struct __declspec(uuid("eba96b1a-2168-11d3-898c-00e02c074f6b"))
  1864. IMSMQMessage3 : IDispatch
  1865. {
  1866. //
  1867. // Property data
  1868. //
  1869. __declspec(property(get=GetBody,put=PutBody))
  1870. _variant_t Body;
  1871. __declspec(property(get=GetDelivery,put=PutDelivery))
  1872. long Delivery;
  1873. __declspec(property(get=GetPriority,put=PutPriority))
  1874. long Priority;
  1875. __declspec(property(get=GetJournal,put=PutJournal))
  1876. long Journal;
  1877. __declspec(property(get=GetResponseQueueInfo_v1,put=PutRefResponseQueueInfo_v1))
  1878. IMSMQQueueInfoPtr ResponseQueueInfo_v1;
  1879. __declspec(property(get=GetAppSpecific,put=PutAppSpecific))
  1880. long AppSpecific;
  1881. __declspec(property(get=GetSourceMachineGuid))
  1882. _bstr_t SourceMachineGuid;
  1883. __declspec(property(get=GetClass))
  1884. long Class;
  1885. __declspec(property(get=GetAdminQueueInfo_v1,put=PutRefAdminQueueInfo_v1))
  1886. IMSMQQueueInfoPtr AdminQueueInfo_v1;
  1887. __declspec(property(get=GetId))
  1888. _variant_t Id;
  1889. __declspec(property(get=GetCorrelationId,put=PutCorrelationId))
  1890. _variant_t CorrelationId;
  1891. __declspec(property(get=GetAck,put=PutAck))
  1892. long Ack;
  1893. __declspec(property(get=GetLabel,put=PutLabel))
  1894. _bstr_t Label;
  1895. __declspec(property(get=GetBodyLength))
  1896. long BodyLength;
  1897. __declspec(property(get=GetMaxTimeToReachQueue,put=PutMaxTimeToReachQueue))
  1898. long MaxTimeToReachQueue;
  1899. __declspec(property(get=GetMaxTimeToReceive,put=PutMaxTimeToReceive))
  1900. long MaxTimeToReceive;
  1901. __declspec(property(get=GetEncryptAlgorithm,put=PutEncryptAlgorithm))
  1902. long EncryptAlgorithm;
  1903. __declspec(property(get=GetHashAlgorithm,put=PutHashAlgorithm))
  1904. long HashAlgorithm;
  1905. __declspec(property(get=GetSentTime))
  1906. _variant_t SentTime;
  1907. __declspec(property(get=GetArrivedTime))
  1908. _variant_t ArrivedTime;
  1909. __declspec(property(get=GetDestinationQueueInfo))
  1910. IMSMQQueueInfo3Ptr DestinationQueueInfo;
  1911. __declspec(property(get=GetSenderCertificate,put=PutSenderCertificate))
  1912. _variant_t SenderCertificate;
  1913. __declspec(property(get=GetSenderId,put=PutSenderId))
  1914. _variant_t SenderId;
  1915. __declspec(property(get=GetSenderIdType,put=PutSenderIdType))
  1916. long SenderIdType;
  1917. __declspec(property(get=GetTrace,put=PutTrace))
  1918. long Trace;
  1919. __declspec(property(get=GetPrivLevel,put=PutPrivLevel))
  1920. long PrivLevel;
  1921. __declspec(property(get=GetAuthLevel,put=PutAuthLevel))
  1922. long AuthLevel;
  1923. __declspec(property(get=GetIsAuthenticated))
  1924. short IsAuthenticated;
  1925. __declspec(property(get=GetSenderVersion))
  1926. long SenderVersion;
  1927. __declspec(property(get=GetExtension,put=PutExtension))
  1928. _variant_t Extension;
  1929. __declspec(property(get=GetConnectorTypeGuid,put=PutConnectorTypeGuid))
  1930. _bstr_t ConnectorTypeGuid;
  1931. __declspec(property(get=GetTransactionStatusQueueInfo))
  1932. IMSMQQueueInfo3Ptr TransactionStatusQueueInfo;
  1933. __declspec(property(get=GetDestinationSymmetricKey,put=PutDestinationSymmetricKey))
  1934. _variant_t DestinationSymmetricKey;
  1935. __declspec(property(get=GetSignature,put=PutSignature))
  1936. _variant_t Signature;
  1937. __declspec(property(get=GetAuthenticationProviderType,put=PutAuthenticationProviderType))
  1938. long AuthenticationProviderType;
  1939. __declspec(property(get=GetAuthenticationProviderName,put=PutAuthenticationProviderName))
  1940. _bstr_t AuthenticationProviderName;
  1941. __declspec(property(get=GetMsgClass,put=PutMsgClass))
  1942. long MsgClass;
  1943. __declspec(property(get=GetProperties))
  1944. IDispatchPtr Properties;
  1945. __declspec(property(get=GetTransactionId))
  1946. _variant_t TransactionId;
  1947. __declspec(property(get=GetIsFirstInTransaction))
  1948. short IsFirstInTransaction;
  1949. __declspec(property(get=GetIsLastInTransaction))
  1950. short IsLastInTransaction;
  1951. __declspec(property(get=GetResponseQueueInfo_v2,put=PutRefResponseQueueInfo_v2))
  1952. IMSMQQueueInfo2Ptr ResponseQueueInfo_v2;
  1953. __declspec(property(get=GetAdminQueueInfo_v2,put=PutRefAdminQueueInfo_v2))
  1954. IMSMQQueueInfo2Ptr AdminQueueInfo_v2;
  1955. __declspec(property(get=GetReceivedAuthenticationLevel))
  1956. short ReceivedAuthenticationLevel;
  1957. __declspec(property(get=GetResponseQueueInfo,put=PutRefResponseQueueInfo))
  1958. IMSMQQueueInfo3Ptr ResponseQueueInfo;
  1959. __declspec(property(get=GetAdminQueueInfo,put=PutRefAdminQueueInfo))
  1960. IMSMQQueueInfo3Ptr AdminQueueInfo;
  1961. __declspec(property(get=GetResponseDestination,put=PutRefResponseDestination))
  1962. IDispatchPtr ResponseDestination;
  1963. __declspec(property(get=GetDestination))
  1964. IDispatchPtr Destination;
  1965. __declspec(property(get=GetLookupId))
  1966. _variant_t LookupId;
  1967. __declspec(property(get=GetIsAuthenticated2))
  1968. VARIANT_BOOL IsAuthenticated2;
  1969. __declspec(property(get=GetIsFirstInTransaction2))
  1970. VARIANT_BOOL IsFirstInTransaction2;
  1971. __declspec(property(get=GetIsLastInTransaction2))
  1972. VARIANT_BOOL IsLastInTransaction2;
  1973. __declspec(property(get=GetSoapEnvelope))
  1974. _bstr_t SoapEnvelope;
  1975. __declspec(property(get=GetCompoundMessage))
  1976. _variant_t CompoundMessage;
  1977. __declspec(property(put=PutSoapHeader))
  1978. _bstr_t SoapHeader;
  1979. __declspec(property(put=PutSoapBody))
  1980. _bstr_t SoapBody;
  1981. //
  1982. // Wrapper methods for error-handling
  1983. //
  1984. long GetClass ( );
  1985. long GetPrivLevel ( );
  1986. void PutPrivLevel (
  1987. long plPrivLevel );
  1988. long GetAuthLevel ( );
  1989. void PutAuthLevel (
  1990. long plAuthLevel );
  1991. short GetIsAuthenticated ( );
  1992. long GetDelivery ( );
  1993. void PutDelivery (
  1994. long plDelivery );
  1995. long GetTrace ( );
  1996. void PutTrace (
  1997. long plTrace );
  1998. long GetPriority ( );
  1999. void PutPriority (
  2000. long plPriority );
  2001. long GetJournal ( );
  2002. void PutJournal (
  2003. long plJournal );
  2004. IMSMQQueueInfoPtr GetResponseQueueInfo_v1 ( );
  2005. void PutRefResponseQueueInfo_v1 (
  2006. struct IMSMQQueueInfo * ppqinfoResponse );
  2007. long GetAppSpecific ( );
  2008. void PutAppSpecific (
  2009. long plAppSpecific );
  2010. _bstr_t GetSourceMachineGuid ( );
  2011. long GetBodyLength ( );
  2012. _variant_t GetBody ( );
  2013. void PutBody (
  2014. const _variant_t & pvarBody );
  2015. IMSMQQueueInfoPtr GetAdminQueueInfo_v1 ( );
  2016. void PutRefAdminQueueInfo_v1 (
  2017. struct IMSMQQueueInfo * ppqinfoAdmin );
  2018. _variant_t GetId ( );
  2019. _variant_t GetCorrelationId ( );
  2020. void PutCorrelationId (
  2021. const _variant_t & pvarMsgId );
  2022. long GetAck ( );
  2023. void PutAck (
  2024. long plAck );
  2025. _bstr_t GetLabel ( );
  2026. void PutLabel (
  2027. _bstr_t pbstrLabel );
  2028. long GetMaxTimeToReachQueue ( );
  2029. void PutMaxTimeToReachQueue (
  2030. long plMaxTimeToReachQueue );
  2031. long GetMaxTimeToReceive ( );
  2032. void PutMaxTimeToReceive (
  2033. long plMaxTimeToReceive );
  2034. long GetHashAlgorithm ( );
  2035. void PutHashAlgorithm (
  2036. long plHashAlg );
  2037. long GetEncryptAlgorithm ( );
  2038. void PutEncryptAlgorithm (
  2039. long plEncryptAlg );
  2040. _variant_t GetSentTime ( );
  2041. _variant_t GetArrivedTime ( );
  2042. IMSMQQueueInfo3Ptr GetDestinationQueueInfo ( );
  2043. _variant_t GetSenderCertificate ( );
  2044. void PutSenderCertificate (
  2045. const _variant_t & pvarSenderCert );
  2046. _variant_t GetSenderId ( );
  2047. long GetSenderIdType ( );
  2048. void PutSenderIdType (
  2049. long plSenderIdType );
  2050. HRESULT Send (
  2051. IDispatch * DestinationQueue,
  2052. VARIANT * Transaction = &vtMissing );
  2053. HRESULT AttachCurrentSecurityContext ( );
  2054. long GetSenderVersion ( );
  2055. _variant_t GetExtension ( );
  2056. void PutExtension (
  2057. const _variant_t & pvarExtension );
  2058. _bstr_t GetConnectorTypeGuid ( );
  2059. void PutConnectorTypeGuid (
  2060. _bstr_t pbstrGuidConnectorType );
  2061. IMSMQQueueInfo3Ptr GetTransactionStatusQueueInfo ( );
  2062. _variant_t GetDestinationSymmetricKey ( );
  2063. void PutDestinationSymmetricKey (
  2064. const _variant_t & pvarDestSymmKey );
  2065. _variant_t GetSignature ( );
  2066. void PutSignature (
  2067. const _variant_t & pvarSignature );
  2068. long GetAuthenticationProviderType ( );
  2069. void PutAuthenticationProviderType (
  2070. long plAuthProvType );
  2071. _bstr_t GetAuthenticationProviderName ( );
  2072. void PutAuthenticationProviderName (
  2073. _bstr_t pbstrAuthProvName );
  2074. void PutSenderId (
  2075. const _variant_t & pvarSenderId );
  2076. long GetMsgClass ( );
  2077. void PutMsgClass (
  2078. long plMsgClass );
  2079. IDispatchPtr GetProperties ( );
  2080. _variant_t GetTransactionId ( );
  2081. short GetIsFirstInTransaction ( );
  2082. short GetIsLastInTransaction ( );
  2083. IMSMQQueueInfo2Ptr GetResponseQueueInfo_v2 ( );
  2084. void PutRefResponseQueueInfo_v2 (
  2085. struct IMSMQQueueInfo2 * ppqinfoResponse );
  2086. IMSMQQueueInfo2Ptr GetAdminQueueInfo_v2 ( );
  2087. void PutRefAdminQueueInfo_v2 (
  2088. struct IMSMQQueueInfo2 * ppqinfoAdmin );
  2089. short GetReceivedAuthenticationLevel ( );
  2090. IMSMQQueueInfo3Ptr GetResponseQueueInfo ( );
  2091. void PutRefResponseQueueInfo (
  2092. struct IMSMQQueueInfo3 * ppqinfoResponse );
  2093. IMSMQQueueInfo3Ptr GetAdminQueueInfo ( );
  2094. void PutRefAdminQueueInfo (
  2095. struct IMSMQQueueInfo3 * ppqinfoAdmin );
  2096. IDispatchPtr GetResponseDestination ( );
  2097. void PutRefResponseDestination (
  2098. IDispatch * ppdestResponse );
  2099. IDispatchPtr GetDestination ( );
  2100. _variant_t GetLookupId ( );
  2101. VARIANT_BOOL GetIsAuthenticated2 ( );
  2102. VARIANT_BOOL GetIsFirstInTransaction2 ( );
  2103. VARIANT_BOOL GetIsLastInTransaction2 ( );
  2104. HRESULT AttachCurrentSecurityContext2 ( );
  2105. _bstr_t GetSoapEnvelope ( );
  2106. _variant_t GetCompoundMessage ( );
  2107. void PutSoapHeader (
  2108. _bstr_t _arg1 );
  2109. void PutSoapBody (
  2110. _bstr_t _arg1 );
  2111. //
  2112. // Raw methods provided by interface
  2113. //
  2114. virtual HRESULT __stdcall get_Class (
  2115. long * plClass ) = 0;
  2116. virtual HRESULT __stdcall get_PrivLevel (
  2117. long * plPrivLevel ) = 0;
  2118. virtual HRESULT __stdcall put_PrivLevel (
  2119. long plPrivLevel ) = 0;
  2120. virtual HRESULT __stdcall get_AuthLevel (
  2121. long * plAuthLevel ) = 0;
  2122. virtual HRESULT __stdcall put_AuthLevel (
  2123. long plAuthLevel ) = 0;
  2124. virtual HRESULT __stdcall get_IsAuthenticated (
  2125. short * pisAuthenticated ) = 0;
  2126. virtual HRESULT __stdcall get_Delivery (
  2127. long * plDelivery ) = 0;
  2128. virtual HRESULT __stdcall put_Delivery (
  2129. long plDelivery ) = 0;
  2130. virtual HRESULT __stdcall get_Trace (
  2131. long * plTrace ) = 0;
  2132. virtual HRESULT __stdcall put_Trace (
  2133. long plTrace ) = 0;
  2134. virtual HRESULT __stdcall get_Priority (
  2135. long * plPriority ) = 0;
  2136. virtual HRESULT __stdcall put_Priority (
  2137. long plPriority ) = 0;
  2138. virtual HRESULT __stdcall get_Journal (
  2139. long * plJournal ) = 0;
  2140. virtual HRESULT __stdcall put_Journal (
  2141. long plJournal ) = 0;
  2142. virtual HRESULT __stdcall get_ResponseQueueInfo_v1 (
  2143. struct IMSMQQueueInfo * * ppqinfoResponse ) = 0;
  2144. virtual HRESULT __stdcall putref_ResponseQueueInfo_v1 (
  2145. struct IMSMQQueueInfo * ppqinfoResponse ) = 0;
  2146. virtual HRESULT __stdcall get_AppSpecific (
  2147. long * plAppSpecific ) = 0;
  2148. virtual HRESULT __stdcall put_AppSpecific (
  2149. long plAppSpecific ) = 0;
  2150. virtual HRESULT __stdcall get_SourceMachineGuid (
  2151. BSTR * pbstrGuidSrcMachine ) = 0;
  2152. virtual HRESULT __stdcall get_BodyLength (
  2153. long * pcbBody ) = 0;
  2154. virtual HRESULT __stdcall get_Body (
  2155. VARIANT * pvarBody ) = 0;
  2156. virtual HRESULT __stdcall put_Body (
  2157. VARIANT pvarBody ) = 0;
  2158. virtual HRESULT __stdcall get_AdminQueueInfo_v1 (
  2159. struct IMSMQQueueInfo * * ppqinfoAdmin ) = 0;
  2160. virtual HRESULT __stdcall putref_AdminQueueInfo_v1 (
  2161. struct IMSMQQueueInfo * ppqinfoAdmin ) = 0;
  2162. virtual HRESULT __stdcall get_Id (
  2163. VARIANT * pvarMsgId ) = 0;
  2164. virtual HRESULT __stdcall get_CorrelationId (
  2165. VARIANT * pvarMsgId ) = 0;
  2166. virtual HRESULT __stdcall put_CorrelationId (
  2167. VARIANT pvarMsgId ) = 0;
  2168. virtual HRESULT __stdcall get_Ack (
  2169. long * plAck ) = 0;
  2170. virtual HRESULT __stdcall put_Ack (
  2171. long plAck ) = 0;
  2172. virtual HRESULT __stdcall get_Label (
  2173. BSTR * pbstrLabel ) = 0;
  2174. virtual HRESULT __stdcall put_Label (
  2175. BSTR pbstrLabel ) = 0;
  2176. virtual HRESULT __stdcall get_MaxTimeToReachQueue (
  2177. long * plMaxTimeToReachQueue ) = 0;
  2178. virtual HRESULT __stdcall put_MaxTimeToReachQueue (
  2179. long plMaxTimeToReachQueue ) = 0;
  2180. virtual HRESULT __stdcall get_MaxTimeToReceive (
  2181. long * plMaxTimeToReceive ) = 0;
  2182. virtual HRESULT __stdcall put_MaxTimeToReceive (
  2183. long plMaxTimeToReceive ) = 0;
  2184. virtual HRESULT __stdcall get_HashAlgorithm (
  2185. long * plHashAlg ) = 0;
  2186. virtual HRESULT __stdcall put_HashAlgorithm (
  2187. long plHashAlg ) = 0;
  2188. virtual HRESULT __stdcall get_EncryptAlgorithm (
  2189. long * plEncryptAlg ) = 0;
  2190. virtual HRESULT __stdcall put_EncryptAlgorithm (
  2191. long plEncryptAlg ) = 0;
  2192. virtual HRESULT __stdcall get_SentTime (
  2193. VARIANT * pvarSentTime ) = 0;
  2194. virtual HRESULT __stdcall get_ArrivedTime (
  2195. VARIANT * plArrivedTime ) = 0;
  2196. virtual HRESULT __stdcall get_DestinationQueueInfo (
  2197. struct IMSMQQueueInfo3 * * ppqinfoDest ) = 0;
  2198. virtual HRESULT __stdcall get_SenderCertificate (
  2199. VARIANT * pvarSenderCert ) = 0;
  2200. virtual HRESULT __stdcall put_SenderCertificate (
  2201. VARIANT pvarSenderCert ) = 0;
  2202. virtual HRESULT __stdcall get_SenderId (
  2203. VARIANT * pvarSenderId ) = 0;
  2204. virtual HRESULT __stdcall get_SenderIdType (
  2205. long * plSenderIdType ) = 0;
  2206. virtual HRESULT __stdcall put_SenderIdType (
  2207. long plSenderIdType ) = 0;
  2208. virtual HRESULT __stdcall raw_Send (
  2209. IDispatch * DestinationQueue,
  2210. VARIANT * Transaction = &vtMissing ) = 0;
  2211. virtual HRESULT __stdcall raw_AttachCurrentSecurityContext ( ) = 0;
  2212. virtual HRESULT __stdcall get_SenderVersion (
  2213. long * plSenderVersion ) = 0;
  2214. virtual HRESULT __stdcall get_Extension (
  2215. VARIANT * pvarExtension ) = 0;
  2216. virtual HRESULT __stdcall put_Extension (
  2217. VARIANT pvarExtension ) = 0;
  2218. virtual HRESULT __stdcall get_ConnectorTypeGuid (
  2219. BSTR * pbstrGuidConnectorType ) = 0;
  2220. virtual HRESULT __stdcall put_ConnectorTypeGuid (
  2221. BSTR pbstrGuidConnectorType ) = 0;
  2222. virtual HRESULT __stdcall get_TransactionStatusQueueInfo (
  2223. struct IMSMQQueueInfo3 * * ppqinfoXactStatus ) = 0;
  2224. virtual HRESULT __stdcall get_DestinationSymmetricKey (
  2225. VARIANT * pvarDestSymmKey ) = 0;
  2226. virtual HRESULT __stdcall put_DestinationSymmetricKey (
  2227. VARIANT pvarDestSymmKey ) = 0;
  2228. virtual HRESULT __stdcall get_Signature (
  2229. VARIANT * pvarSignature ) = 0;
  2230. virtual HRESULT __stdcall put_Signature (
  2231. VARIANT pvarSignature ) = 0;
  2232. virtual HRESULT __stdcall get_AuthenticationProviderType (
  2233. long * plAuthProvType ) = 0;
  2234. virtual HRESULT __stdcall put_AuthenticationProviderType (
  2235. long plAuthProvType ) = 0;
  2236. virtual HRESULT __stdcall get_AuthenticationProviderName (
  2237. BSTR * pbstrAuthProvName ) = 0;
  2238. virtual HRESULT __stdcall put_AuthenticationProviderName (
  2239. BSTR pbstrAuthProvName ) = 0;
  2240. virtual HRESULT __stdcall put_SenderId (
  2241. VARIANT pvarSenderId ) = 0;
  2242. virtual HRESULT __stdcall get_MsgClass (
  2243. long * plMsgClass ) = 0;
  2244. virtual HRESULT __stdcall put_MsgClass (
  2245. long plMsgClass ) = 0;
  2246. virtual HRESULT __stdcall get_Properties (
  2247. IDispatch * * ppcolProperties ) = 0;
  2248. virtual HRESULT __stdcall get_TransactionId (
  2249. VARIANT * pvarXactId ) = 0;
  2250. virtual HRESULT __stdcall get_IsFirstInTransaction (
  2251. short * pisFirstInXact ) = 0;
  2252. virtual HRESULT __stdcall get_IsLastInTransaction (
  2253. short * pisLastInXact ) = 0;
  2254. virtual HRESULT __stdcall get_ResponseQueueInfo_v2 (
  2255. struct IMSMQQueueInfo2 * * ppqinfoResponse ) = 0;
  2256. virtual HRESULT __stdcall putref_ResponseQueueInfo_v2 (
  2257. struct IMSMQQueueInfo2 * ppqinfoResponse ) = 0;
  2258. virtual HRESULT __stdcall get_AdminQueueInfo_v2 (
  2259. struct IMSMQQueueInfo2 * * ppqinfoAdmin ) = 0;
  2260. virtual HRESULT __stdcall putref_AdminQueueInfo_v2 (
  2261. struct IMSMQQueueInfo2 * ppqinfoAdmin ) = 0;
  2262. virtual HRESULT __stdcall get_ReceivedAuthenticationLevel (
  2263. short * psReceivedAuthenticationLevel ) = 0;
  2264. virtual HRESULT __stdcall get_ResponseQueueInfo (
  2265. struct IMSMQQueueInfo3 * * ppqinfoResponse ) = 0;
  2266. virtual HRESULT __stdcall putref_ResponseQueueInfo (
  2267. struct IMSMQQueueInfo3 * ppqinfoResponse ) = 0;
  2268. virtual HRESULT __stdcall get_AdminQueueInfo (
  2269. struct IMSMQQueueInfo3 * * ppqinfoAdmin ) = 0;
  2270. virtual HRESULT __stdcall putref_AdminQueueInfo (
  2271. struct IMSMQQueueInfo3 * ppqinfoAdmin ) = 0;
  2272. virtual HRESULT __stdcall get_ResponseDestination (
  2273. IDispatch * * ppdestResponse ) = 0;
  2274. virtual HRESULT __stdcall putref_ResponseDestination (
  2275. IDispatch * ppdestResponse ) = 0;
  2276. virtual HRESULT __stdcall get_Destination (
  2277. IDispatch * * ppdestDestination ) = 0;
  2278. virtual HRESULT __stdcall get_LookupId (
  2279. VARIANT * pvarLookupId ) = 0;
  2280. virtual HRESULT __stdcall get_IsAuthenticated2 (
  2281. VARIANT_BOOL * pisAuthenticated ) = 0;
  2282. virtual HRESULT __stdcall get_IsFirstInTransaction2 (
  2283. VARIANT_BOOL * pisFirstInXact ) = 0;
  2284. virtual HRESULT __stdcall get_IsLastInTransaction2 (
  2285. VARIANT_BOOL * pisLastInXact ) = 0;
  2286. virtual HRESULT __stdcall raw_AttachCurrentSecurityContext2 ( ) = 0;
  2287. virtual HRESULT __stdcall get_SoapEnvelope (
  2288. BSTR * pbstrSoapEnvelope ) = 0;
  2289. virtual HRESULT __stdcall get_CompoundMessage (
  2290. VARIANT * pvarCompoundMessage ) = 0;
  2291. virtual HRESULT __stdcall put_SoapHeader (
  2292. BSTR _arg1 ) = 0;
  2293. virtual HRESULT __stdcall put_SoapBody (
  2294. BSTR _arg1 ) = 0;
  2295. };
  2296. struct __declspec(uuid("eba96b0f-2168-11d3-898c-00e02c074f6b"))
  2297. IMSMQQueueInfos2 : IDispatch
  2298. {
  2299. //
  2300. // Property data
  2301. //
  2302. __declspec(property(get=GetProperties))
  2303. IDispatchPtr Properties;
  2304. //
  2305. // Wrapper methods for error-handling
  2306. //
  2307. HRESULT Reset ( );
  2308. IMSMQQueueInfo2Ptr Next ( );
  2309. IDispatchPtr GetProperties ( );
  2310. //
  2311. // Raw methods provided by interface
  2312. //
  2313. virtual HRESULT __stdcall raw_Reset ( ) = 0;
  2314. virtual HRESULT __stdcall raw_Next (
  2315. struct IMSMQQueueInfo2 * * ppqinfoNext ) = 0;
  2316. virtual HRESULT __stdcall get_Properties (
  2317. IDispatch * * ppcolProperties ) = 0;
  2318. };
  2319. struct __declspec(uuid("eba96b1e-2168-11d3-898c-00e02c074f6b"))
  2320. IMSMQQueueInfos3 : IDispatch
  2321. {
  2322. //
  2323. // Property data
  2324. //
  2325. __declspec(property(get=GetProperties))
  2326. IDispatchPtr Properties;
  2327. //
  2328. // Wrapper methods for error-handling
  2329. //
  2330. HRESULT Reset ( );
  2331. IMSMQQueueInfo3Ptr Next ( );
  2332. IDispatchPtr GetProperties ( );
  2333. //
  2334. // Raw methods provided by interface
  2335. //
  2336. virtual HRESULT __stdcall raw_Reset ( ) = 0;
  2337. virtual HRESULT __stdcall raw_Next (
  2338. struct IMSMQQueueInfo3 * * ppqinfoNext ) = 0;
  2339. virtual HRESULT __stdcall get_Properties (
  2340. IDispatch * * ppcolProperties ) = 0;
  2341. };
  2342. struct __declspec(uuid("d7d6e07f-dccd-11d0-aa4b-0060970debae"))
  2343. IMSMQTransaction : IDispatch
  2344. {
  2345. //
  2346. // Property data
  2347. //
  2348. __declspec(property(get=GetTransaction))
  2349. long Transaction;
  2350. //
  2351. // Wrapper methods for error-handling
  2352. //
  2353. long GetTransaction ( );
  2354. HRESULT Commit (
  2355. VARIANT * fRetaining = &vtMissing,
  2356. VARIANT * grfTC = &vtMissing,
  2357. VARIANT * grfRM = &vtMissing );
  2358. HRESULT Abort (
  2359. VARIANT * fRetaining = &vtMissing,
  2360. VARIANT * fAsync = &vtMissing );
  2361. //
  2362. // Raw methods provided by interface
  2363. //
  2364. virtual HRESULT __stdcall get_Transaction (
  2365. long * plTransaction ) = 0;
  2366. virtual HRESULT __stdcall raw_Commit (
  2367. VARIANT * fRetaining = &vtMissing,
  2368. VARIANT * grfTC = &vtMissing,
  2369. VARIANT * grfRM = &vtMissing ) = 0;
  2370. virtual HRESULT __stdcall raw_Abort (
  2371. VARIANT * fRetaining = &vtMissing,
  2372. VARIANT * fAsync = &vtMissing ) = 0;
  2373. };
  2374. struct __declspec(uuid("d7d6e081-dccd-11d0-aa4b-0060970debae"))
  2375. IMSMQCoordinatedTransactionDispenser : IDispatch
  2376. {
  2377. //
  2378. // Wrapper methods for error-handling
  2379. //
  2380. IMSMQTransactionPtr BeginTransaction ( );
  2381. //
  2382. // Raw methods provided by interface
  2383. //
  2384. virtual HRESULT __stdcall raw_BeginTransaction (
  2385. struct IMSMQTransaction * * ptransaction ) = 0;
  2386. };
  2387. struct __declspec(uuid("d7d6e083-dccd-11d0-aa4b-0060970debae"))
  2388. IMSMQTransactionDispenser : IDispatch
  2389. {
  2390. //
  2391. // Wrapper methods for error-handling
  2392. //
  2393. IMSMQTransactionPtr BeginTransaction ( );
  2394. //
  2395. // Raw methods provided by interface
  2396. //
  2397. virtual HRESULT __stdcall raw_BeginTransaction (
  2398. struct IMSMQTransaction * * ptransaction ) = 0;
  2399. };
  2400. enum MQCALG
  2401. {
  2402. MQMSG_CALG_MD2 = 32769,
  2403. MQMSG_CALG_MD4 = 32770,
  2404. MQMSG_CALG_MD5 = 32771,
  2405. MQMSG_CALG_SHA = 32772,
  2406. MQMSG_CALG_SHA1 = 32772,
  2407. MQMSG_CALG_MAC = 32773,
  2408. MQMSG_CALG_RSA_SIGN = 9216,
  2409. MQMSG_CALG_DSS_SIGN = 8704,
  2410. MQMSG_CALG_RSA_KEYX = 41984,
  2411. MQMSG_CALG_DES = 26113,
  2412. MQMSG_CALG_RC2 = 26114,
  2413. MQMSG_CALG_RC4 = 26625,
  2414. MQMSG_CALG_SEAL = 26626
  2415. };
  2416. enum MQTRANSACTION
  2417. {
  2418. MQ_NO_TRANSACTION = 0,
  2419. MQ_MTS_TRANSACTION = 1,
  2420. MQ_XA_TRANSACTION = 2,
  2421. MQ_SINGLE_MESSAGE = 3
  2422. };
  2423. enum RELOPS
  2424. {
  2425. REL_NOP = 0,
  2426. REL_EQ = 1,
  2427. REL_NEQ = 2,
  2428. REL_LT = 3,
  2429. REL_GT = 4,
  2430. REL_LE = 5,
  2431. REL_GE = 6
  2432. };
  2433. enum MQCERT_REGISTER
  2434. {
  2435. MQCERT_REGISTER_ALWAYS = 1,
  2436. MQCERT_REGISTER_IF_NOT_EXIST = 2
  2437. };
  2438. enum MQMSGCURSOR
  2439. {
  2440. MQMSG_FIRST = 0,
  2441. MQMSG_CURRENT = 1,
  2442. MQMSG_NEXT = 2
  2443. };
  2444. enum MQMSGCLASS
  2445. {
  2446. MQMSG_CLASS_NORMAL = 0,
  2447. MQMSG_CLASS_REPORT = 1,
  2448. MQMSG_CLASS_ACK_REACH_QUEUE = 2,
  2449. MQMSG_CLASS_ACK_RECEIVE = 16384,
  2450. MQMSG_CLASS_NACK_BAD_DST_Q = 32768,
  2451. MQMSG_CLASS_NACK_PURGED = 32769,
  2452. MQMSG_CLASS_NACK_REACH_QUEUE_TIMEOUT = 32770,
  2453. MQMSG_CLASS_NACK_Q_EXCEED_QUOTA = 32771,
  2454. MQMSG_CLASS_NACK_ACCESS_DENIED = 32772,
  2455. MQMSG_CLASS_NACK_HOP_COUNT_EXCEEDED = 32773,
  2456. MQMSG_CLASS_NACK_BAD_SIGNATURE = 32774,
  2457. MQMSG_CLASS_NACK_BAD_ENCRYPTION = 32775,
  2458. MQMSG_CLASS_NACK_COULD_NOT_ENCRYPT = 32776,
  2459. MQMSG_CLASS_NACK_NOT_TRANSACTIONAL_Q = 32777,
  2460. MQMSG_CLASS_NACK_NOT_TRANSACTIONAL_MSG = 32778,
  2461. MQMSG_CLASS_NACK_UNSUPPORTED_CRYPTO_PROVIDER = 32779,
  2462. MQMSG_CLASS_NACK_Q_DELETED = 49152,
  2463. MQMSG_CLASS_NACK_Q_PURGED = 49153,
  2464. MQMSG_CLASS_NACK_RECEIVE_TIMEOUT = 49154,
  2465. MQMSG_CLASS_NACK_RECEIVE_TIMEOUT_AT_SENDER = 49155
  2466. };
  2467. enum MQMSGDELIVERY
  2468. {
  2469. MQMSG_DELIVERY_EXPRESS = 0,
  2470. MQMSG_DELIVERY_RECOVERABLE = 1
  2471. };
  2472. enum MQMSGACKNOWLEDGEMENT
  2473. {
  2474. MQMSG_ACKNOWLEDGMENT_NONE = 0,
  2475. MQMSG_ACKNOWLEDGMENT_POS_ARRIVAL = 1,
  2476. MQMSG_ACKNOWLEDGMENT_POS_RECEIVE = 2,
  2477. MQMSG_ACKNOWLEDGMENT_NEG_ARRIVAL = 4,
  2478. MQMSG_ACKNOWLEDGMENT_NEG_RECEIVE = 8,
  2479. MQMSG_ACKNOWLEDGMENT_NACK_REACH_QUEUE = 4,
  2480. MQMSG_ACKNOWLEDGMENT_FULL_REACH_QUEUE = 5,
  2481. MQMSG_ACKNOWLEDGMENT_NACK_RECEIVE = 12,
  2482. MQMSG_ACKNOWLEDGMENT_FULL_RECEIVE = 14
  2483. };
  2484. enum MQMSGJOURNAL
  2485. {
  2486. MQMSG_JOURNAL_NONE = 0,
  2487. MQMSG_DEADLETTER = 1,
  2488. MQMSG_JOURNAL = 2
  2489. };
  2490. enum MQMSGTRACE
  2491. {
  2492. MQMSG_TRACE_NONE = 0,
  2493. MQMSG_SEND_ROUTE_TO_REPORT_QUEUE = 1
  2494. };
  2495. enum MQMSGSENDERIDTYPE
  2496. {
  2497. MQMSG_SENDERID_TYPE_NONE = 0,
  2498. MQMSG_SENDERID_TYPE_SID = 1
  2499. };
  2500. enum MQMSGPRIVLEVEL
  2501. {
  2502. MQMSG_PRIV_LEVEL_NONE = 0,
  2503. MQMSG_PRIV_LEVEL_BODY = 1,
  2504. MQMSG_PRIV_LEVEL_BODY_BASE = 1,
  2505. MQMSG_PRIV_LEVEL_BODY_ENHANCED = 3
  2506. };
  2507. enum MQMSGAUTHLEVEL
  2508. {
  2509. MQMSG_AUTH_LEVEL_NONE = 0,
  2510. MQMSG_AUTH_LEVEL_ALWAYS = 1,
  2511. MQMSG_AUTH_LEVEL_MSMQ10 = 2,
  2512. MQMSG_AUTH_LEVEL_SIG10 = 2,
  2513. MQMSG_AUTH_LEVEL_MSMQ20 = 4,
  2514. MQMSG_AUTH_LEVEL_SIG20 = 4,
  2515. MQMSG_AUTH_LEVEL_SIG30 = 8
  2516. };
  2517. enum MQMSGIDSIZE
  2518. {
  2519. MQMSG_MSGID_SIZE = 20,
  2520. MQMSG_CORRELATIONID_SIZE = 20,
  2521. MQMSG_XACTID_SIZE = 20
  2522. };
  2523. enum MQMSGMAX
  2524. {
  2525. MQ_MAX_MSG_LABEL_LEN = 249
  2526. };
  2527. enum MQMSGAUTHENTICATION
  2528. {
  2529. MQMSG_AUTHENTICATION_NOT_REQUESTED = 0,
  2530. MQMSG_AUTHENTICATION_REQUESTED = 1,
  2531. MQMSG_AUTHENTICATED_SIG10 = 1,
  2532. MQMSG_AUTHENTICATION_REQUESTED_EX = 3,
  2533. MQMSG_AUTHENTICATED_SIG20 = 3,
  2534. MQMSG_AUTHENTICATED_SIG30 = 5,
  2535. MQMSG_AUTHENTICATED_SIGXML = 9
  2536. };
  2537. enum MQSHARE
  2538. {
  2539. MQ_DENY_NONE = 0,
  2540. MQ_DENY_RECEIVE_SHARE = 1
  2541. };
  2542. enum MQACCESS
  2543. {
  2544. MQ_RECEIVE_ACCESS = 1,
  2545. MQ_SEND_ACCESS = 2,
  2546. MQ_PEEK_ACCESS = 32,
  2547. MQ_ADMIN_ACCESS = 128
  2548. };
  2549. enum MQJOURNAL
  2550. {
  2551. MQ_JOURNAL_NONE = 0,
  2552. MQ_JOURNAL = 1
  2553. };
  2554. enum MQTRANSACTIONAL
  2555. {
  2556. MQ_TRANSACTIONAL_NONE = 0,
  2557. MQ_TRANSACTIONAL = 1
  2558. };
  2559. enum MQAUTHENTICATE
  2560. {
  2561. MQ_AUTHENTICATE_NONE = 0,
  2562. MQ_AUTHENTICATE = 1
  2563. };
  2564. enum MQPRIVLEVEL
  2565. {
  2566. MQ_PRIV_LEVEL_NONE = 0,
  2567. MQ_PRIV_LEVEL_OPTIONAL = 1,
  2568. MQ_PRIV_LEVEL_BODY = 2
  2569. };
  2570. enum MQPRIORITY
  2571. {
  2572. MQ_MIN_PRIORITY = 0,
  2573. MQ_MAX_PRIORITY = 7
  2574. };
  2575. enum MQMAX
  2576. {
  2577. MQ_MAX_Q_NAME_LEN = 124,
  2578. MQ_MAX_Q_LABEL_LEN = 124
  2579. };
  2580. enum QUEUE_TYPE
  2581. {
  2582. MQ_TYPE_PUBLIC = 0,
  2583. MQ_TYPE_PRIVATE = 1,
  2584. MQ_TYPE_MACHINE = 2,
  2585. MQ_TYPE_CONNECTOR = 3,
  2586. MQ_TYPE_MULTICAST = 4
  2587. };
  2588. enum FOREIGN_STATUS
  2589. {
  2590. MQ_STATUS_FOREIGN = 0,
  2591. MQ_STATUS_NOT_FOREIGN = 1,
  2592. MQ_STATUS_UNKNOWN = 2
  2593. };
  2594. enum XACT_STATUS
  2595. {
  2596. MQ_XACT_STATUS_XACT = 0,
  2597. MQ_XACT_STATUS_NOT_XACT = 1,
  2598. MQ_XACT_STATUS_UNKNOWN = 2
  2599. };
  2600. enum QUEUE_STATE
  2601. {
  2602. MQ_QUEUE_STATE_LOCAL_CONNECTION = 0,
  2603. MQ_QUEUE_STATE_DISCONNECTED = 1,
  2604. MQ_QUEUE_STATE_WAITING = 2,
  2605. MQ_QUEUE_STATE_NEEDVALIDATE = 3,
  2606. MQ_QUEUE_STATE_ONHOLD = 4,
  2607. MQ_QUEUE_STATE_NONACTIVE = 5,
  2608. MQ_QUEUE_STATE_CONNECTED = 6,
  2609. MQ_QUEUE_STATE_DISCONNECTING = 7
  2610. };
  2611. enum MQDEFAULT
  2612. {
  2613. DEFAULT_M_PRIORITY = 3,
  2614. DEFAULT_M_DELIVERY = 0,
  2615. DEFAULT_M_ACKNOWLEDGE = 0,
  2616. DEFAULT_M_JOURNAL = 0,
  2617. DEFAULT_M_APPSPECIFIC = 0,
  2618. DEFAULT_M_PRIV_LEVEL = 0,
  2619. DEFAULT_M_AUTH_LEVEL = 0,
  2620. DEFAULT_M_SENDERID_TYPE = 1,
  2621. DEFAULT_Q_JOURNAL = 0,
  2622. DEFAULT_Q_BASEPRIORITY = 0,
  2623. DEFAULT_Q_QUOTA = -1,
  2624. DEFAULT_Q_JOURNAL_QUOTA = -1,
  2625. DEFAULT_Q_TRANSACTION = 0,
  2626. DEFAULT_Q_AUTHENTICATE = 0,
  2627. DEFAULT_Q_PRIV_LEVEL = 1,
  2628. DEFAULT_M_LOOKUPID = 0
  2629. };
  2630. enum MQERROR
  2631. {
  2632. MQ_ERROR = -1072824319,
  2633. MQ_ERROR_PROPERTY = -1072824318,
  2634. MQ_ERROR_QUEUE_NOT_FOUND = -1072824317,
  2635. MQ_ERROR_QUEUE_EXISTS = -1072824315,
  2636. MQ_ERROR_INVALID_PARAMETER = -1072824314,
  2637. MQ_ERROR_INVALID_HANDLE = -1072824313,
  2638. MQ_ERROR_OPERATION_CANCELLED = -1072824312,
  2639. MQ_ERROR_SHARING_VIOLATION = -1072824311,
  2640. MQ_ERROR_SERVICE_NOT_AVAILABLE = -1072824309,
  2641. MQ_ERROR_MACHINE_NOT_FOUND = -1072824307,
  2642. MQ_ERROR_ILLEGAL_SORT = -1072824304,
  2643. MQ_ERROR_ILLEGAL_USER = -1072824303,
  2644. MQ_ERROR_NO_DS = -1072824301,
  2645. MQ_ERROR_ILLEGAL_QUEUE_PATHNAME = -1072824300,
  2646. MQ_ERROR_ILLEGAL_PROPERTY_VALUE = -1072824296,
  2647. MQ_ERROR_ILLEGAL_PROPERTY_VT = -1072824295,
  2648. MQ_ERROR_BUFFER_OVERFLOW = -1072824294,
  2649. MQ_ERROR_IO_TIMEOUT = -1072824293,
  2650. MQ_ERROR_ILLEGAL_CURSOR_ACTION = -1072824292,
  2651. MQ_ERROR_MESSAGE_ALREADY_RECEIVED = -1072824291,
  2652. MQ_ERROR_ILLEGAL_FORMATNAME = -1072824290,
  2653. MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL = -1072824289,
  2654. MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION = -1072824288,
  2655. MQ_ERROR_ILLEGAL_SECURITY_DESCRIPTOR = -1072824287,
  2656. MQ_ERROR_SENDERID_BUFFER_TOO_SMALL = -1072824286,
  2657. MQ_ERROR_SECURITY_DESCRIPTOR_TOO_SMALL = -1072824285,
  2658. MQ_ERROR_CANNOT_IMPERSONATE_CLIENT = -1072824284,
  2659. MQ_ERROR_ACCESS_DENIED = -1072824283,
  2660. MQ_ERROR_PRIVILEGE_NOT_HELD = -1072824282,
  2661. MQ_ERROR_INSUFFICIENT_RESOURCES = -1072824281,
  2662. MQ_ERROR_USER_BUFFER_TOO_SMALL = -1072824280,
  2663. MQ_ERROR_MESSAGE_STORAGE_FAILED = -1072824278,
  2664. MQ_ERROR_SENDER_CERT_BUFFER_TOO_SMALL = -1072824277,
  2665. MQ_ERROR_INVALID_CERTIFICATE = -1072824276,
  2666. MQ_ERROR_CORRUPTED_INTERNAL_CERTIFICATE = -1072824275,
  2667. MQ_ERROR_NO_INTERNAL_USER_CERT = -1072824273,
  2668. MQ_ERROR_CORRUPTED_SECURITY_DATA = -1072824272,
  2669. MQ_ERROR_CORRUPTED_PERSONAL_CERT_STORE = -1072824271,
  2670. MQ_ERROR_COMPUTER_DOES_NOT_SUPPORT_ENCRYPTION = -1072824269,
  2671. MQ_ERROR_BAD_SECURITY_CONTEXT = -1072824267,
  2672. MQ_ERROR_COULD_NOT_GET_USER_SID = -1072824266,
  2673. MQ_ERROR_COULD_NOT_GET_ACCOUNT_INFO = -1072824265,
  2674. MQ_ERROR_ILLEGAL_MQCOLUMNS = -1072824264,
  2675. MQ_ERROR_ILLEGAL_PROPID = -1072824263,
  2676. MQ_ERROR_ILLEGAL_RELATION = -1072824262,
  2677. MQ_ERROR_ILLEGAL_PROPERTY_SIZE = -1072824261,
  2678. MQ_ERROR_ILLEGAL_RESTRICTION_PROPID = -1072824260,
  2679. MQ_ERROR_ILLEGAL_MQQUEUEPROPS = -1072824259,
  2680. MQ_ERROR_PROPERTY_NOTALLOWED = -1072824258,
  2681. MQ_ERROR_INSUFFICIENT_PROPERTIES = -1072824257,
  2682. MQ_ERROR_MACHINE_EXISTS = -1072824256,
  2683. MQ_ERROR_ILLEGAL_MQQMPROPS = -1072824255,
  2684. MQ_ERROR_DS_IS_FULL = -1072824254,
  2685. MQ_ERROR_DS_ERROR = -1072824253,
  2686. MQ_ERROR_INVALID_OWNER = -1072824252,
  2687. MQ_ERROR_UNSUPPORTED_ACCESS_MODE = -1072824251,
  2688. MQ_ERROR_RESULT_BUFFER_TOO_SMALL = -1072824250,
  2689. MQ_ERROR_DELETE_CN_IN_USE = -1072824248,
  2690. MQ_ERROR_NO_RESPONSE_FROM_OBJECT_SERVER = -1072824247,
  2691. MQ_ERROR_OBJECT_SERVER_NOT_AVAILABLE = -1072824246,
  2692. MQ_ERROR_QUEUE_NOT_AVAILABLE = -1072824245,
  2693. MQ_ERROR_DTC_CONNECT = -1072824244,
  2694. MQ_ERROR_TRANSACTION_IMPORT = -1072824242,
  2695. MQ_ERROR_TRANSACTION_USAGE = -1072824240,
  2696. MQ_ERROR_TRANSACTION_SEQUENCE = -1072824239,
  2697. MQ_ERROR_MISSING_CONNECTOR_TYPE = -1072824235,
  2698. MQ_ERROR_STALE_HANDLE = -1072824234,
  2699. MQ_ERROR_TRANSACTION_ENLIST = -1072824232,
  2700. MQ_ERROR_QUEUE_DELETED = -1072824230,
  2701. MQ_ERROR_ILLEGAL_CONTEXT = -1072824229,
  2702. MQ_ERROR_ILLEGAL_SORT_PROPID = -1072824228,
  2703. MQ_ERROR_LABEL_TOO_LONG = -1072824227,
  2704. MQ_ERROR_LABEL_BUFFER_TOO_SMALL = -1072824226,
  2705. MQ_ERROR_MQIS_SERVER_EMPTY = -1072824225,
  2706. MQ_ERROR_MQIS_READONLY_MODE = -1072824224,
  2707. MQ_ERROR_SYMM_KEY_BUFFER_TOO_SMALL = -1072824223,
  2708. MQ_ERROR_SIGNATURE_BUFFER_TOO_SMALL = -1072824222,
  2709. MQ_ERROR_PROV_NAME_BUFFER_TOO_SMALL = -1072824221,
  2710. MQ_ERROR_ILLEGAL_OPERATION = -1072824220,
  2711. MQ_ERROR_WRITE_NOT_ALLOWED = -1072824219,
  2712. MQ_ERROR_WKS_CANT_SERVE_CLIENT = -1072824218,
  2713. MQ_ERROR_DEPEND_WKS_LICENSE_OVERFLOW = -1072824217,
  2714. MQ_CORRUPTED_QUEUE_WAS_DELETED = -1072824216,
  2715. MQ_ERROR_REMOTE_MACHINE_NOT_AVAILABLE = -1072824215,
  2716. MQ_ERROR_UNSUPPORTED_OPERATION = -1072824214,
  2717. MQ_ERROR_ENCRYPTION_PROVIDER_NOT_SUPPORTED = -1072824213,
  2718. MQ_ERROR_CANNOT_SET_CRYPTO_SEC_DESCR = -1072824212,
  2719. MQ_ERROR_CERTIFICATE_NOT_PROVIDED = -1072824211,
  2720. MQ_ERROR_Q_DNS_PROPERTY_NOT_SUPPORTED = -1072824210,
  2721. MQ_ERROR_CANT_CREATE_CERT_STORE = -1072824209,
  2722. MQ_ERROR_CANNOT_CREATE_CERT_STORE = -1072824209,
  2723. MQ_ERROR_CANT_OPEN_CERT_STORE = -1072824208,
  2724. MQ_ERROR_CANNOT_OPEN_CERT_STORE = -1072824208,
  2725. MQ_ERROR_ILLEGAL_ENTERPRISE_OPERATION = -1072824207,
  2726. MQ_ERROR_CANNOT_GRANT_ADD_GUID = -1072824206,
  2727. MQ_ERROR_CANNOT_LOAD_MSMQOCM = -1072824205,
  2728. MQ_ERROR_NO_ENTRY_POINT_MSMQOCM = -1072824204,
  2729. MQ_ERROR_NO_MSMQ_SERVERS_ON_DC = -1072824203,
  2730. MQ_ERROR_CANNOT_JOIN_DOMAIN = -1072824202,
  2731. MQ_ERROR_CANNOT_CREATE_ON_GC = -1072824201,
  2732. MQ_ERROR_GUID_NOT_MATCHING = -1072824200,
  2733. MQ_ERROR_PUBLIC_KEY_NOT_FOUND = -1072824199,
  2734. MQ_ERROR_PUBLIC_KEY_DOES_NOT_EXIST = -1072824198,
  2735. MQ_ERROR_ILLEGAL_MQPRIVATEPROPS = -1072824197,
  2736. MQ_ERROR_NO_GC_IN_DOMAIN = -1072824196,
  2737. MQ_ERROR_NO_MSMQ_SERVERS_ON_GC = -1072824195,
  2738. MQ_ERROR_CANNOT_GET_DN = -1072824194,
  2739. MQ_ERROR_CANNOT_HASH_DATA_EX = -1072824193,
  2740. MQ_ERROR_CANNOT_SIGN_DATA_EX = -1072824192,
  2741. MQ_ERROR_CANNOT_CREATE_HASH_EX = -1072824191,
  2742. MQ_ERROR_FAIL_VERIFY_SIGNATURE_EX = -1072824190,
  2743. MQ_ERROR_CANNOT_DELETE_PSC_OBJECTS = -1072824189,
  2744. MQ_ERROR_NO_MQUSER_OU = -1072824188,
  2745. MQ_ERROR_CANNOT_LOAD_MQAD = -1072824187,
  2746. MQ_ERROR_CANNOT_LOAD_MQDSSRV = -1072824186,
  2747. MQ_ERROR_PROPERTIES_CONFLICT = -1072824185,
  2748. MQ_ERROR_MESSAGE_NOT_FOUND = -1072824184,
  2749. MQ_ERROR_CANT_RESOLVE_SITES = -1072824183,
  2750. MQ_ERROR_NOT_SUPPORTED_BY_DEPENDENT_CLIENTS = -1072824182,
  2751. MQ_ERROR_OPERATION_NOT_SUPPORTED_BY_REMOTE_COMPUTER = -1072824181,
  2752. MQ_ERROR_NOT_A_CORRECT_OBJECT_CLASS = -1072824180,
  2753. MQ_ERROR_MULTI_SORT_KEYS = -1072824179,
  2754. MQ_ERROR_GC_NEEDED = -1072824178,
  2755. MQ_ERROR_DS_BIND_ROOT_FOREST = -1072824177,
  2756. MQ_ERROR_DS_LOCAL_USER = -1072824176,
  2757. MQ_ERROR_Q_ADS_PROPERTY_NOT_SUPPORTED = -1072824175,
  2758. MQ_ERROR_BAD_XML_FORMAT = -1072824174,
  2759. MQ_ERROR_UNSUPPORTED_CLASS = -1072824173
  2760. };
  2761. enum MQWARNING
  2762. {
  2763. MQ_INFORMATION_PROPERTY = 1074659329,
  2764. MQ_INFORMATION_ILLEGAL_PROPERTY = 1074659330,
  2765. MQ_INFORMATION_PROPERTY_IGNORED = 1074659331,
  2766. MQ_INFORMATION_UNSUPPORTED_PROPERTY = 1074659332,
  2767. MQ_INFORMATION_DUPLICATE_PROPERTY = 1074659333,
  2768. MQ_INFORMATION_OPERATION_PENDING = 1074659334,
  2769. MQ_INFORMATION_FORMATNAME_BUFFER_TOO_SMALL = 1074659337,
  2770. MQ_INFORMATION_INTERNAL_USER_CERT_EXIST = 1074659338,
  2771. MQ_INFORMATION_OWNER_IGNORED = 1074659339
  2772. };
  2773. struct __declspec(uuid("eba96b0e-2168-11d3-898c-00e02c074f6b"))
  2774. IMSMQQuery2 : IDispatch
  2775. {
  2776. //
  2777. // Property data
  2778. //
  2779. __declspec(property(get=GetProperties))
  2780. IDispatchPtr Properties;
  2781. //
  2782. // Wrapper methods for error-handling
  2783. //
  2784. IMSMQQueueInfos2Ptr LookupQueue (
  2785. VARIANT * QueueGuid = &vtMissing,
  2786. VARIANT * ServiceTypeGuid = &vtMissing,
  2787. VARIANT * Label = &vtMissing,
  2788. VARIANT * CreateTime = &vtMissing,
  2789. VARIANT * ModifyTime = &vtMissing,
  2790. VARIANT * RelServiceType = &vtMissing,
  2791. VARIANT * RelLabel = &vtMissing,
  2792. VARIANT * RelCreateTime = &vtMissing,
  2793. VARIANT * RelModifyTime = &vtMissing );
  2794. IDispatchPtr GetProperties ( );
  2795. //
  2796. // Raw methods provided by interface
  2797. //
  2798. virtual HRESULT __stdcall raw_LookupQueue (
  2799. VARIANT * QueueGuid,
  2800. VARIANT * ServiceTypeGuid,
  2801. VARIANT * Label,
  2802. VARIANT * CreateTime,
  2803. VARIANT * ModifyTime,
  2804. VARIANT * RelServiceType,
  2805. VARIANT * RelLabel,
  2806. VARIANT * RelCreateTime,
  2807. VARIANT * RelModifyTime,
  2808. struct IMSMQQueueInfos2 * * ppqinfos ) = 0;
  2809. virtual HRESULT __stdcall get_Properties (
  2810. IDispatch * * ppcolProperties ) = 0;
  2811. };
  2812. struct __declspec(uuid("eba96b19-2168-11d3-898c-00e02c074f6b"))
  2813. IMSMQQuery3 : IDispatch
  2814. {
  2815. //
  2816. // Property data
  2817. //
  2818. __declspec(property(get=GetProperties))
  2819. IDispatchPtr Properties;
  2820. //
  2821. // Wrapper methods for error-handling
  2822. //
  2823. IMSMQQueueInfos3Ptr LookupQueue_v2 (
  2824. VARIANT * QueueGuid = &vtMissing,
  2825. VARIANT * ServiceTypeGuid = &vtMissing,
  2826. VARIANT * Label = &vtMissing,
  2827. VARIANT * CreateTime = &vtMissing,
  2828. VARIANT * ModifyTime = &vtMissing,
  2829. VARIANT * RelServiceType = &vtMissing,
  2830. VARIANT * RelLabel = &vtMissing,
  2831. VARIANT * RelCreateTime = &vtMissing,
  2832. VARIANT * RelModifyTime = &vtMissing );
  2833. IDispatchPtr GetProperties ( );
  2834. IMSMQQueueInfos3Ptr LookupQueue (
  2835. VARIANT * QueueGuid = &vtMissing,
  2836. VARIANT * ServiceTypeGuid = &vtMissing,
  2837. VARIANT * Label = &vtMissing,
  2838. VARIANT * CreateTime = &vtMissing,
  2839. VARIANT * ModifyTime = &vtMissing,
  2840. VARIANT * RelServiceType = &vtMissing,
  2841. VARIANT * RelLabel = &vtMissing,
  2842. VARIANT * RelCreateTime = &vtMissing,
  2843. VARIANT * RelModifyTime = &vtMissing,
  2844. VARIANT * MulticastAddress = &vtMissing,
  2845. VARIANT * RelMulticastAddress = &vtMissing );
  2846. //
  2847. // Raw methods provided by interface
  2848. //
  2849. virtual HRESULT __stdcall raw_LookupQueue_v2 (
  2850. VARIANT * QueueGuid,
  2851. VARIANT * ServiceTypeGuid,
  2852. VARIANT * Label,
  2853. VARIANT * CreateTime,
  2854. VARIANT * ModifyTime,
  2855. VARIANT * RelServiceType,
  2856. VARIANT * RelLabel,
  2857. VARIANT * RelCreateTime,
  2858. VARIANT * RelModifyTime,
  2859. struct IMSMQQueueInfos3 * * ppqinfos ) = 0;
  2860. virtual HRESULT __stdcall get_Properties (
  2861. IDispatch * * ppcolProperties ) = 0;
  2862. virtual HRESULT __stdcall raw_LookupQueue (
  2863. VARIANT * QueueGuid,
  2864. VARIANT * ServiceTypeGuid,
  2865. VARIANT * Label,
  2866. VARIANT * CreateTime,
  2867. VARIANT * ModifyTime,
  2868. VARIANT * RelServiceType,
  2869. VARIANT * RelLabel,
  2870. VARIANT * RelCreateTime,
  2871. VARIANT * RelModifyTime,
  2872. VARIANT * MulticastAddress,
  2873. VARIANT * RelMulticastAddress,
  2874. struct IMSMQQueueInfos3 * * ppqinfos ) = 0;
  2875. };
  2876. struct __declspec(uuid("d7d6e073-dccd-11d0-aa4b-0060970debae"))
  2877. MSMQQuery;
  2878. // interface IMSMQQuery
  2879. // interface IMSMQQuery2
  2880. // [ default ] interface IMSMQQuery3
  2881. struct __declspec(uuid("d7d6e075-dccd-11d0-aa4b-0060970debae"))
  2882. MSMQMessage;
  2883. // interface IMSMQMessage
  2884. // interface IMSMQMessage2
  2885. // [ default ] interface IMSMQMessage3
  2886. struct __declspec(uuid("d7d6e079-dccd-11d0-aa4b-0060970debae"))
  2887. MSMQQueue;
  2888. // interface IMSMQQueue
  2889. // interface IMSMQQueue2
  2890. // [ default ] interface IMSMQQueue3
  2891. struct __declspec(uuid("d7ab3341-c9d3-11d1-bb47-0080c7c5a2c0"))
  2892. IMSMQPrivateEvent : IDispatch
  2893. {
  2894. //
  2895. // Property data
  2896. //
  2897. __declspec(property(get=GetHwnd))
  2898. long Hwnd;
  2899. //
  2900. // Wrapper methods for error-handling
  2901. //
  2902. long GetHwnd ( );
  2903. HRESULT FireArrivedEvent (
  2904. struct IMSMQQueue * pq,
  2905. long msgcursor );
  2906. HRESULT FireArrivedErrorEvent (
  2907. struct IMSMQQueue * pq,
  2908. HRESULT hrStatus,
  2909. long msgcursor );
  2910. //
  2911. // Raw methods provided by interface
  2912. //
  2913. virtual HRESULT __stdcall get_Hwnd (
  2914. long * phwnd ) = 0;
  2915. virtual HRESULT __stdcall raw_FireArrivedEvent (
  2916. struct IMSMQQueue * pq,
  2917. long msgcursor ) = 0;
  2918. virtual HRESULT __stdcall raw_FireArrivedErrorEvent (
  2919. struct IMSMQQueue * pq,
  2920. HRESULT hrStatus,
  2921. long msgcursor ) = 0;
  2922. };
  2923. struct __declspec(uuid("d7d6e078-dccd-11d0-aa4b-0060970debae"))
  2924. _DMSMQEventEvents : IDispatch
  2925. {
  2926. //
  2927. // Wrapper methods for error-handling
  2928. //
  2929. // Methods:
  2930. HRESULT Arrived (
  2931. IDispatch * Queue,
  2932. long Cursor );
  2933. HRESULT ArrivedError (
  2934. IDispatch * Queue,
  2935. long ErrorCode,
  2936. long Cursor );
  2937. };
  2938. struct __declspec(uuid("d7d6e07a-dccd-11d0-aa4b-0060970debae"))
  2939. MSMQEvent;
  2940. // interface IMSMQEvent
  2941. // interface IMSMQEvent2
  2942. // [ default ] interface IMSMQEvent3
  2943. // interface IMSMQPrivateEvent
  2944. // [ default, source ] dispinterface _DMSMQEventEvents
  2945. struct __declspec(uuid("d7d6e07c-dccd-11d0-aa4b-0060970debae"))
  2946. MSMQQueueInfo;
  2947. // interface IMSMQQueueInfo
  2948. // interface IMSMQQueueInfo2
  2949. // [ default ] interface IMSMQQueueInfo3
  2950. struct __declspec(uuid("d7d6e07e-dccd-11d0-aa4b-0060970debae"))
  2951. MSMQQueueInfos;
  2952. // interface IMSMQQueueInfos
  2953. // interface IMSMQQueueInfos2
  2954. // [ default ] interface IMSMQQueueInfos3
  2955. struct __declspec(uuid("2ce0c5b0-6e67-11d2-b0e6-00e02c074f6b"))
  2956. IMSMQTransaction2 : IMSMQTransaction
  2957. {
  2958. //
  2959. // Property data
  2960. //
  2961. __declspec(property(get=GetProperties))
  2962. IDispatchPtr Properties;
  2963. //
  2964. // Wrapper methods for error-handling
  2965. //
  2966. HRESULT InitNew (
  2967. const _variant_t & varTransaction );
  2968. IDispatchPtr GetProperties ( );
  2969. //
  2970. // Raw methods provided by interface
  2971. //
  2972. virtual HRESULT __stdcall raw_InitNew (
  2973. VARIANT varTransaction ) = 0;
  2974. virtual HRESULT __stdcall get_Properties (
  2975. IDispatch * * ppcolProperties ) = 0;
  2976. };
  2977. struct __declspec(uuid("eba96b13-2168-11d3-898c-00e02c074f6b"))
  2978. IMSMQTransaction3 : IMSMQTransaction2
  2979. {
  2980. //
  2981. // Property data
  2982. //
  2983. __declspec(property(get=GetITransaction))
  2984. _variant_t ITransaction;
  2985. //
  2986. // Wrapper methods for error-handling
  2987. //
  2988. _variant_t GetITransaction ( );
  2989. //
  2990. // Raw methods provided by interface
  2991. //
  2992. virtual HRESULT __stdcall get_ITransaction (
  2993. VARIANT * pvarITransaction ) = 0;
  2994. };
  2995. struct __declspec(uuid("d7d6e080-dccd-11d0-aa4b-0060970debae"))
  2996. MSMQTransaction;
  2997. // interface IMSMQTransaction
  2998. // interface IMSMQTransaction2
  2999. // [ default ] interface IMSMQTransaction3
  3000. struct __declspec(uuid("eba96b10-2168-11d3-898c-00e02c074f6b"))
  3001. IMSMQCoordinatedTransactionDispenser2 : IDispatch
  3002. {
  3003. //
  3004. // Property data
  3005. //
  3006. __declspec(property(get=GetProperties))
  3007. IDispatchPtr Properties;
  3008. //
  3009. // Wrapper methods for error-handling
  3010. //
  3011. IMSMQTransaction2Ptr BeginTransaction ( );
  3012. IDispatchPtr GetProperties ( );
  3013. //
  3014. // Raw methods provided by interface
  3015. //
  3016. virtual HRESULT __stdcall raw_BeginTransaction (
  3017. struct IMSMQTransaction2 * * ptransaction ) = 0;
  3018. virtual HRESULT __stdcall get_Properties (
  3019. IDispatch * * ppcolProperties ) = 0;
  3020. };
  3021. struct __declspec(uuid("eba96b14-2168-11d3-898c-00e02c074f6b"))
  3022. IMSMQCoordinatedTransactionDispenser3 : IDispatch
  3023. {
  3024. //
  3025. // Property data
  3026. //
  3027. __declspec(property(get=GetProperties))
  3028. IDispatchPtr Properties;
  3029. //
  3030. // Wrapper methods for error-handling
  3031. //
  3032. IMSMQTransaction3Ptr BeginTransaction ( );
  3033. IDispatchPtr GetProperties ( );
  3034. //
  3035. // Raw methods provided by interface
  3036. //
  3037. virtual HRESULT __stdcall raw_BeginTransaction (
  3038. struct IMSMQTransaction3 * * ptransaction ) = 0;
  3039. virtual HRESULT __stdcall get_Properties (
  3040. IDispatch * * ppcolProperties ) = 0;
  3041. };
  3042. struct __declspec(uuid("d7d6e082-dccd-11d0-aa4b-0060970debae"))
  3043. MSMQCoordinatedTransactionDispenser;
  3044. // interface IMSMQCoordinatedTransactionDispenser
  3045. // interface IMSMQCoordinatedTransactionDispenser2
  3046. // [ default ] interface IMSMQCoordinatedTransactionDispenser3
  3047. struct __declspec(uuid("eba96b11-2168-11d3-898c-00e02c074f6b"))
  3048. IMSMQTransactionDispenser2 : IDispatch
  3049. {
  3050. //
  3051. // Property data
  3052. //
  3053. __declspec(property(get=GetProperties))
  3054. IDispatchPtr Properties;
  3055. //
  3056. // Wrapper methods for error-handling
  3057. //
  3058. IMSMQTransaction2Ptr BeginTransaction ( );
  3059. IDispatchPtr GetProperties ( );
  3060. //
  3061. // Raw methods provided by interface
  3062. //
  3063. virtual HRESULT __stdcall raw_BeginTransaction (
  3064. struct IMSMQTransaction2 * * ptransaction ) = 0;
  3065. virtual HRESULT __stdcall get_Properties (
  3066. IDispatch * * ppcolProperties ) = 0;
  3067. };
  3068. struct __declspec(uuid("eba96b15-2168-11d3-898c-00e02c074f6b"))
  3069. IMSMQTransactionDispenser3 : IDispatch
  3070. {
  3071. //
  3072. // Property data
  3073. //
  3074. __declspec(property(get=GetProperties))
  3075. IDispatchPtr Properties;
  3076. //
  3077. // Wrapper methods for error-handling
  3078. //
  3079. IMSMQTransaction3Ptr BeginTransaction ( );
  3080. IDispatchPtr GetProperties ( );
  3081. //
  3082. // Raw methods provided by interface
  3083. //
  3084. virtual HRESULT __stdcall raw_BeginTransaction (
  3085. struct IMSMQTransaction3 * * ptransaction ) = 0;
  3086. virtual HRESULT __stdcall get_Properties (
  3087. IDispatch * * ppcolProperties ) = 0;
  3088. };
  3089. struct __declspec(uuid("d7d6e084-dccd-11d0-aa4b-0060970debae"))
  3090. MSMQTransactionDispenser;
  3091. // interface IMSMQTransactionDispenser
  3092. // interface IMSMQTransactionDispenser2
  3093. // [ default ] interface IMSMQTransactionDispenser3
  3094. struct __declspec(uuid("d7d6e085-dccd-11d0-aa4b-0060970debae"))
  3095. IMSMQApplication : IDispatch
  3096. {
  3097. //
  3098. // Wrapper methods for error-handling
  3099. //
  3100. _bstr_t MachineIdOfMachineName (
  3101. _bstr_t MachineName );
  3102. //
  3103. // Raw methods provided by interface
  3104. //
  3105. virtual HRESULT __stdcall raw_MachineIdOfMachineName (
  3106. BSTR MachineName,
  3107. BSTR * pbstrGuid ) = 0;
  3108. };
  3109. struct __declspec(uuid("12a30900-7300-11d2-b0e6-00e02c074f6b"))
  3110. IMSMQApplication2 : IMSMQApplication
  3111. {
  3112. //
  3113. // Property data
  3114. //
  3115. __declspec(property(get=GetProperties))
  3116. IDispatchPtr Properties;
  3117. __declspec(property(get=GetMSMQVersionMajor))
  3118. short MSMQVersionMajor;
  3119. __declspec(property(get=GetMSMQVersionMinor))
  3120. short MSMQVersionMinor;
  3121. __declspec(property(get=GetMSMQVersionBuild))
  3122. short MSMQVersionBuild;
  3123. __declspec(property(get=GetIsDsEnabled))
  3124. VARIANT_BOOL IsDsEnabled;
  3125. //
  3126. // Wrapper methods for error-handling
  3127. //
  3128. HRESULT RegisterCertificate (
  3129. VARIANT * Flags = &vtMissing,
  3130. VARIANT * ExternalCertificate = &vtMissing );
  3131. _bstr_t MachineNameOfMachineId (
  3132. _bstr_t bstrGuid );
  3133. short GetMSMQVersionMajor ( );
  3134. short GetMSMQVersionMinor ( );
  3135. short GetMSMQVersionBuild ( );
  3136. VARIANT_BOOL GetIsDsEnabled ( );
  3137. IDispatchPtr GetProperties ( );
  3138. //
  3139. // Raw methods provided by interface
  3140. //
  3141. virtual HRESULT __stdcall raw_RegisterCertificate (
  3142. VARIANT * Flags = &vtMissing,
  3143. VARIANT * ExternalCertificate = &vtMissing ) = 0;
  3144. virtual HRESULT __stdcall raw_MachineNameOfMachineId (
  3145. BSTR bstrGuid,
  3146. BSTR * pbstrMachineName ) = 0;
  3147. virtual HRESULT __stdcall get_MSMQVersionMajor (
  3148. short * psMSMQVersionMajor ) = 0;
  3149. virtual HRESULT __stdcall get_MSMQVersionMinor (
  3150. short * psMSMQVersionMinor ) = 0;
  3151. virtual HRESULT __stdcall get_MSMQVersionBuild (
  3152. short * psMSMQVersionBuild ) = 0;
  3153. virtual HRESULT __stdcall get_IsDsEnabled (
  3154. VARIANT_BOOL * pfIsDsEnabled ) = 0;
  3155. virtual HRESULT __stdcall get_Properties (
  3156. IDispatch * * ppcolProperties ) = 0;
  3157. };
  3158. struct __declspec(uuid("eba96b1f-2168-11d3-898c-00e02c074f6b"))
  3159. IMSMQApplication3 : IMSMQApplication2
  3160. {
  3161. //
  3162. // Property data
  3163. //
  3164. __declspec(property(get=GetActiveQueues))
  3165. _variant_t ActiveQueues;
  3166. __declspec(property(get=GetPrivateQueues))
  3167. _variant_t PrivateQueues;
  3168. __declspec(property(get=GetDirectoryServiceServer))
  3169. _bstr_t DirectoryServiceServer;
  3170. __declspec(property(get=GetIsConnected))
  3171. VARIANT_BOOL IsConnected;
  3172. __declspec(property(get=GetBytesInAllQueues))
  3173. _variant_t BytesInAllQueues;
  3174. __declspec(property(get=GetMachine,put=PutMachine))
  3175. _bstr_t Machine;
  3176. //
  3177. // Wrapper methods for error-handling
  3178. //
  3179. _variant_t GetActiveQueues ( );
  3180. _variant_t GetPrivateQueues ( );
  3181. _bstr_t GetDirectoryServiceServer ( );
  3182. VARIANT_BOOL GetIsConnected ( );
  3183. _variant_t GetBytesInAllQueues ( );
  3184. void PutMachine (
  3185. _bstr_t pbstrMachine );
  3186. _bstr_t GetMachine ( );
  3187. HRESULT Connect ( );
  3188. HRESULT Disconnect ( );
  3189. HRESULT Tidy ( );
  3190. //
  3191. // Raw methods provided by interface
  3192. //
  3193. virtual HRESULT __stdcall get_ActiveQueues (
  3194. VARIANT * pvActiveQueues ) = 0;
  3195. virtual HRESULT __stdcall get_PrivateQueues (
  3196. VARIANT * pvPrivateQueues ) = 0;
  3197. virtual HRESULT __stdcall get_DirectoryServiceServer (
  3198. BSTR * pbstrDirectoryServiceServer ) = 0;
  3199. virtual HRESULT __stdcall get_IsConnected (
  3200. VARIANT_BOOL * pfIsConnected ) = 0;
  3201. virtual HRESULT __stdcall get_BytesInAllQueues (
  3202. VARIANT * pvBytesInAllQueues ) = 0;
  3203. virtual HRESULT __stdcall put_Machine (
  3204. BSTR pbstrMachine ) = 0;
  3205. virtual HRESULT __stdcall get_Machine (
  3206. BSTR * pbstrMachine ) = 0;
  3207. virtual HRESULT __stdcall raw_Connect ( ) = 0;
  3208. virtual HRESULT __stdcall raw_Disconnect ( ) = 0;
  3209. virtual HRESULT __stdcall raw_Tidy ( ) = 0;
  3210. };
  3211. struct __declspec(uuid("d7d6e086-dccd-11d0-aa4b-0060970debae"))
  3212. MSMQApplication;
  3213. // interface IMSMQApplication
  3214. // interface IMSMQApplication2
  3215. // [ default ] interface IMSMQApplication3
  3216. struct __declspec(uuid("eba96b16-2168-11d3-898c-00e02c074f6b"))
  3217. IMSMQDestination : IDispatch
  3218. {
  3219. //
  3220. // Property data
  3221. //
  3222. __declspec(property(get=GetProperties))
  3223. IDispatchPtr Properties;
  3224. __declspec(property(get=GetIsOpen))
  3225. VARIANT_BOOL IsOpen;
  3226. __declspec(property(get=GetIADs,put=PutRefIADs))
  3227. IDispatchPtr IADs;
  3228. __declspec(property(get=GetADsPath,put=PutADsPath))
  3229. _bstr_t ADsPath;
  3230. __declspec(property(get=GetPathName,put=PutPathName))
  3231. _bstr_t PathName;
  3232. __declspec(property(get=GetFormatName,put=PutFormatName))
  3233. _bstr_t FormatName;
  3234. __declspec(property(get=GetDestinations,put=PutRefDestinations))
  3235. IDispatchPtr Destinations;
  3236. //
  3237. // Wrapper methods for error-handling
  3238. //
  3239. HRESULT Open ( );
  3240. HRESULT Close ( );
  3241. VARIANT_BOOL GetIsOpen ( );
  3242. IDispatchPtr GetIADs ( );
  3243. void PutRefIADs (
  3244. IDispatch * ppIADs );
  3245. _bstr_t GetADsPath ( );
  3246. void PutADsPath (
  3247. _bstr_t pbstrADsPath );
  3248. _bstr_t GetPathName ( );
  3249. void PutPathName (
  3250. _bstr_t pbstrPathName );
  3251. _bstr_t GetFormatName ( );
  3252. void PutFormatName (
  3253. _bstr_t pbstrFormatName );
  3254. IDispatchPtr GetDestinations ( );
  3255. void PutRefDestinations (
  3256. IDispatch * ppDestinations );
  3257. IDispatchPtr GetProperties ( );
  3258. //
  3259. // Raw methods provided by interface
  3260. //
  3261. virtual HRESULT __stdcall raw_Open ( ) = 0;
  3262. virtual HRESULT __stdcall raw_Close ( ) = 0;
  3263. virtual HRESULT __stdcall get_IsOpen (
  3264. VARIANT_BOOL * pfIsOpen ) = 0;
  3265. virtual HRESULT __stdcall get_IADs (
  3266. IDispatch * * ppIADs ) = 0;
  3267. virtual HRESULT __stdcall putref_IADs (
  3268. IDispatch * ppIADs ) = 0;
  3269. virtual HRESULT __stdcall get_ADsPath (
  3270. BSTR * pbstrADsPath ) = 0;
  3271. virtual HRESULT __stdcall put_ADsPath (
  3272. BSTR pbstrADsPath ) = 0;
  3273. virtual HRESULT __stdcall get_PathName (
  3274. BSTR * pbstrPathName ) = 0;
  3275. virtual HRESULT __stdcall put_PathName (
  3276. BSTR pbstrPathName ) = 0;
  3277. virtual HRESULT __stdcall get_FormatName (
  3278. BSTR * pbstrFormatName ) = 0;
  3279. virtual HRESULT __stdcall put_FormatName (
  3280. BSTR pbstrFormatName ) = 0;
  3281. virtual HRESULT __stdcall get_Destinations (
  3282. IDispatch * * ppDestinations ) = 0;
  3283. virtual HRESULT __stdcall putref_Destinations (
  3284. IDispatch * ppDestinations ) = 0;
  3285. virtual HRESULT __stdcall get_Properties (
  3286. IDispatch * * ppcolProperties ) = 0;
  3287. };
  3288. struct __declspec(uuid("eba96b17-2168-11d3-898c-00e02c074f6b"))
  3289. IMSMQPrivateDestination : IDispatch
  3290. {
  3291. //
  3292. // Property data
  3293. //
  3294. __declspec(property(get=GetHandle,put=PutHandle))
  3295. _variant_t Handle;
  3296. //
  3297. // Wrapper methods for error-handling
  3298. //
  3299. _variant_t GetHandle ( );
  3300. void PutHandle (
  3301. const _variant_t & pvarHandle );
  3302. //
  3303. // Raw methods provided by interface
  3304. //
  3305. virtual HRESULT __stdcall get_Handle (
  3306. VARIANT * pvarHandle ) = 0;
  3307. virtual HRESULT __stdcall put_Handle (
  3308. VARIANT pvarHandle ) = 0;
  3309. };
  3310. struct __declspec(uuid("eba96b18-2168-11d3-898c-00e02c074f6b"))
  3311. MSMQDestination;
  3312. // [ default ] interface IMSMQDestination
  3313. // interface IMSMQPrivateDestination
  3314. struct __declspec(uuid("0188ac2f-ecb3-4173-9779-635ca2039c72"))
  3315. IMSMQCollection : IDispatch
  3316. {
  3317. //
  3318. // Property data
  3319. //
  3320. __declspec(property(get=GetCount))
  3321. long Count;
  3322. //
  3323. // Wrapper methods for error-handling
  3324. //
  3325. _variant_t Item (
  3326. VARIANT * Index );
  3327. long GetCount ( );
  3328. IUnknownPtr _NewEnum ( );
  3329. //
  3330. // Raw methods provided by interface
  3331. //
  3332. virtual HRESULT __stdcall raw_Item (
  3333. VARIANT * Index,
  3334. VARIANT * pvarRet ) = 0;
  3335. virtual HRESULT __stdcall get_Count (
  3336. long * pCount ) = 0;
  3337. virtual HRESULT __stdcall raw__NewEnum (
  3338. IUnknown * * ppunk ) = 0;
  3339. };
  3340. struct __declspec(uuid("be5f0241-e489-4957-8cc4-a452fcf3e23e"))
  3341. IMSMQManagement : IDispatch
  3342. {
  3343. //
  3344. // Property data
  3345. //
  3346. __declspec(property(get=GetFormatName))
  3347. _bstr_t FormatName;
  3348. __declspec(property(get=GetMachine))
  3349. _bstr_t Machine;
  3350. __declspec(property(get=GetMessageCount))
  3351. long MessageCount;
  3352. __declspec(property(get=GetForeignStatus))
  3353. long ForeignStatus;
  3354. __declspec(property(get=GetQueueType))
  3355. long QueueType;
  3356. __declspec(property(get=GetIsLocal))
  3357. VARIANT_BOOL IsLocal;
  3358. __declspec(property(get=GetTransactionalStatus))
  3359. long TransactionalStatus;
  3360. __declspec(property(get=GetBytesInQueue))
  3361. _variant_t BytesInQueue;
  3362. //
  3363. // Wrapper methods for error-handling
  3364. //
  3365. HRESULT Init (
  3366. VARIANT * Machine = &vtMissing,
  3367. VARIANT * PathName = &vtMissing,
  3368. VARIANT * FormatName = &vtMissing );
  3369. _bstr_t GetFormatName ( );
  3370. _bstr_t GetMachine ( );
  3371. long GetMessageCount ( );
  3372. long GetForeignStatus ( );
  3373. long GetQueueType ( );
  3374. VARIANT_BOOL GetIsLocal ( );
  3375. long GetTransactionalStatus ( );
  3376. _variant_t GetBytesInQueue ( );
  3377. //
  3378. // Raw methods provided by interface
  3379. //
  3380. virtual HRESULT __stdcall raw_Init (
  3381. VARIANT * Machine = &vtMissing,
  3382. VARIANT * PathName = &vtMissing,
  3383. VARIANT * FormatName = &vtMissing ) = 0;
  3384. virtual HRESULT __stdcall get_FormatName (
  3385. BSTR * pbstrFormatName ) = 0;
  3386. virtual HRESULT __stdcall get_Machine (
  3387. BSTR * pbstrMachine ) = 0;
  3388. virtual HRESULT __stdcall get_MessageCount (
  3389. long * plMessageCount ) = 0;
  3390. virtual HRESULT __stdcall get_ForeignStatus (
  3391. long * plForeignStatus ) = 0;
  3392. virtual HRESULT __stdcall get_QueueType (
  3393. long * plQueueType ) = 0;
  3394. virtual HRESULT __stdcall get_IsLocal (
  3395. VARIANT_BOOL * pfIsLocal ) = 0;
  3396. virtual HRESULT __stdcall get_TransactionalStatus (
  3397. long * plTransactionalStatus ) = 0;
  3398. virtual HRESULT __stdcall get_BytesInQueue (
  3399. VARIANT * pvBytesInQueue ) = 0;
  3400. };
  3401. struct __declspec(uuid("39ce96fe-f4c5-4484-a143-4c2d5d324229"))
  3402. MSMQManagement;
  3403. // [ default ] interface IMSMQManagement
  3404. struct __declspec(uuid("64c478fb-f9b0-4695-8a7f-439ac94326d3"))
  3405. IMSMQOutgoingQueueManagement : IMSMQManagement
  3406. {
  3407. //
  3408. // Property data
  3409. //
  3410. __declspec(property(get=GetState))
  3411. long State;
  3412. __declspec(property(get=GetNextHops))
  3413. _variant_t NextHops;
  3414. //
  3415. // Wrapper methods for error-handling
  3416. //
  3417. long GetState ( );
  3418. _variant_t GetNextHops ( );
  3419. IMSMQCollectionPtr EodGetSendInfo ( );
  3420. HRESULT Resume ( );
  3421. HRESULT Pause ( );
  3422. HRESULT EodResend ( );
  3423. //
  3424. // Raw methods provided by interface
  3425. //
  3426. virtual HRESULT __stdcall get_State (
  3427. long * plState ) = 0;
  3428. virtual HRESULT __stdcall get_NextHops (
  3429. VARIANT * pvNextHops ) = 0;
  3430. virtual HRESULT __stdcall raw_EodGetSendInfo (
  3431. struct IMSMQCollection * * ppCollection ) = 0;
  3432. virtual HRESULT __stdcall raw_Resume ( ) = 0;
  3433. virtual HRESULT __stdcall raw_Pause ( ) = 0;
  3434. virtual HRESULT __stdcall raw_EodResend ( ) = 0;
  3435. };
  3436. struct __declspec(uuid("0188401c-247a-4fed-99c6-bf14119d7055"))
  3437. MSMQOutgoingQueueManagement;
  3438. // [ default ] interface IMSMQOutgoingQueueManagement
  3439. struct __declspec(uuid("7fbe7759-5760-444d-b8a5-5e7ab9a84cce"))
  3440. IMSMQQueueManagement : IMSMQManagement
  3441. {
  3442. //
  3443. // Property data
  3444. //
  3445. __declspec(property(get=GetJournalMessageCount))
  3446. long JournalMessageCount;
  3447. __declspec(property(get=GetBytesInJournal))
  3448. _variant_t BytesInJournal;
  3449. //
  3450. // Wrapper methods for error-handling
  3451. //
  3452. long GetJournalMessageCount ( );
  3453. _variant_t GetBytesInJournal ( );
  3454. _variant_t EodGetReceiveInfo ( );
  3455. //
  3456. // Raw methods provided by interface
  3457. //
  3458. virtual HRESULT __stdcall get_JournalMessageCount (
  3459. long * plJournalMessageCount ) = 0;
  3460. virtual HRESULT __stdcall get_BytesInJournal (
  3461. VARIANT * pvBytesInJournal ) = 0;
  3462. virtual HRESULT __stdcall raw_EodGetReceiveInfo (
  3463. VARIANT * pvCollection ) = 0;
  3464. };
  3465. struct __declspec(uuid("33b6d07e-f27d-42fa-b2d7-bf82e11e9374"))
  3466. MSMQQueueManagement;
  3467. // [ default ] interface IMSMQQueueManagement
  3468. //
  3469. // Wrapper method implementations
  3470. //
  3471. #include "mqoa.tli"
  3472. #pragma pack(pop)