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.

3218 lines
114 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8447.0 (22b11824).
  2. //
  3. // mqoa.tli
  4. //
  5. // Wrapper implementations for 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. //
  9. // interface IMSMQQuery wrapper method implementations
  10. //
  11. inline IMSMQQueueInfosPtr IMSMQQuery::LookupQueue ( VARIANT * QueueGuid, VARIANT * ServiceTypeGuid, VARIANT * Label, VARIANT * CreateTime, VARIANT * ModifyTime, VARIANT * RelServiceType, VARIANT * RelLabel, VARIANT * RelCreateTime, VARIANT * RelModifyTime ) {
  12. struct IMSMQQueueInfos * _result;
  13. HRESULT _hr = raw_LookupQueue(QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, &_result);
  14. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  15. return IMSMQQueueInfosPtr(_result, false);
  16. }
  17. //
  18. // interface IMSMQQueueInfos wrapper method implementations
  19. //
  20. inline HRESULT IMSMQQueueInfos::Reset ( ) {
  21. HRESULT _hr = raw_Reset();
  22. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  23. return _hr;
  24. }
  25. inline IMSMQQueueInfoPtr IMSMQQueueInfos::Next ( ) {
  26. struct IMSMQQueueInfo * _result;
  27. HRESULT _hr = raw_Next(&_result);
  28. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  29. return IMSMQQueueInfoPtr(_result, false);
  30. }
  31. //
  32. // interface IMSMQQueueInfo wrapper method implementations
  33. //
  34. inline _bstr_t IMSMQQueueInfo::GetQueueGuid ( ) {
  35. BSTR _result;
  36. HRESULT _hr = get_QueueGuid(&_result);
  37. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  38. return _bstr_t(_result, false);
  39. }
  40. inline _bstr_t IMSMQQueueInfo::GetServiceTypeGuid ( ) {
  41. BSTR _result;
  42. HRESULT _hr = get_ServiceTypeGuid(&_result);
  43. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  44. return _bstr_t(_result, false);
  45. }
  46. inline void IMSMQQueueInfo::PutServiceTypeGuid ( _bstr_t pbstrGuidServiceType ) {
  47. HRESULT _hr = put_ServiceTypeGuid(pbstrGuidServiceType);
  48. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  49. }
  50. inline _bstr_t IMSMQQueueInfo::GetLabel ( ) {
  51. BSTR _result;
  52. HRESULT _hr = get_Label(&_result);
  53. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  54. return _bstr_t(_result, false);
  55. }
  56. inline void IMSMQQueueInfo::PutLabel ( _bstr_t pbstrLabel ) {
  57. HRESULT _hr = put_Label(pbstrLabel);
  58. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  59. }
  60. inline _bstr_t IMSMQQueueInfo::GetPathName ( ) {
  61. BSTR _result;
  62. HRESULT _hr = get_PathName(&_result);
  63. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  64. return _bstr_t(_result, false);
  65. }
  66. inline void IMSMQQueueInfo::PutPathName ( _bstr_t pbstrPathName ) {
  67. HRESULT _hr = put_PathName(pbstrPathName);
  68. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  69. }
  70. inline _bstr_t IMSMQQueueInfo::GetFormatName ( ) {
  71. BSTR _result;
  72. HRESULT _hr = get_FormatName(&_result);
  73. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  74. return _bstr_t(_result, false);
  75. }
  76. inline void IMSMQQueueInfo::PutFormatName ( _bstr_t pbstrFormatName ) {
  77. HRESULT _hr = put_FormatName(pbstrFormatName);
  78. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  79. }
  80. inline short IMSMQQueueInfo::GetIsTransactional ( ) {
  81. short _result;
  82. HRESULT _hr = get_IsTransactional(&_result);
  83. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  84. return _result;
  85. }
  86. inline long IMSMQQueueInfo::GetPrivLevel ( ) {
  87. long _result;
  88. HRESULT _hr = get_PrivLevel(&_result);
  89. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  90. return _result;
  91. }
  92. inline void IMSMQQueueInfo::PutPrivLevel ( long plPrivLevel ) {
  93. HRESULT _hr = put_PrivLevel(plPrivLevel);
  94. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  95. }
  96. inline long IMSMQQueueInfo::GetJournal ( ) {
  97. long _result;
  98. HRESULT _hr = get_Journal(&_result);
  99. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  100. return _result;
  101. }
  102. inline void IMSMQQueueInfo::PutJournal ( long plJournal ) {
  103. HRESULT _hr = put_Journal(plJournal);
  104. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  105. }
  106. inline long IMSMQQueueInfo::GetQuota ( ) {
  107. long _result;
  108. HRESULT _hr = get_Quota(&_result);
  109. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  110. return _result;
  111. }
  112. inline void IMSMQQueueInfo::PutQuota ( long plQuota ) {
  113. HRESULT _hr = put_Quota(plQuota);
  114. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  115. }
  116. inline long IMSMQQueueInfo::GetBasePriority ( ) {
  117. long _result;
  118. HRESULT _hr = get_BasePriority(&_result);
  119. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  120. return _result;
  121. }
  122. inline void IMSMQQueueInfo::PutBasePriority ( long plBasePriority ) {
  123. HRESULT _hr = put_BasePriority(plBasePriority);
  124. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  125. }
  126. inline _variant_t IMSMQQueueInfo::GetCreateTime ( ) {
  127. VARIANT _result;
  128. VariantInit(&_result);
  129. HRESULT _hr = get_CreateTime(&_result);
  130. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  131. return _variant_t(_result, false);
  132. }
  133. inline _variant_t IMSMQQueueInfo::GetModifyTime ( ) {
  134. VARIANT _result;
  135. VariantInit(&_result);
  136. HRESULT _hr = get_ModifyTime(&_result);
  137. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  138. return _variant_t(_result, false);
  139. }
  140. inline long IMSMQQueueInfo::GetAuthenticate ( ) {
  141. long _result;
  142. HRESULT _hr = get_Authenticate(&_result);
  143. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  144. return _result;
  145. }
  146. inline void IMSMQQueueInfo::PutAuthenticate ( long plAuthenticate ) {
  147. HRESULT _hr = put_Authenticate(plAuthenticate);
  148. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  149. }
  150. inline long IMSMQQueueInfo::GetJournalQuota ( ) {
  151. long _result;
  152. HRESULT _hr = get_JournalQuota(&_result);
  153. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  154. return _result;
  155. }
  156. inline void IMSMQQueueInfo::PutJournalQuota ( long plJournalQuota ) {
  157. HRESULT _hr = put_JournalQuota(plJournalQuota);
  158. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  159. }
  160. inline short IMSMQQueueInfo::GetIsWorldReadable ( ) {
  161. short _result;
  162. HRESULT _hr = get_IsWorldReadable(&_result);
  163. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  164. return _result;
  165. }
  166. inline HRESULT IMSMQQueueInfo::Create ( VARIANT * IsTransactional, VARIANT * IsWorldReadable ) {
  167. HRESULT _hr = raw_Create(IsTransactional, IsWorldReadable);
  168. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  169. return _hr;
  170. }
  171. inline HRESULT IMSMQQueueInfo::Delete ( ) {
  172. HRESULT _hr = raw_Delete();
  173. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  174. return _hr;
  175. }
  176. inline IMSMQQueuePtr IMSMQQueueInfo::Open ( long Access, long ShareMode ) {
  177. struct IMSMQQueue * _result;
  178. HRESULT _hr = raw_Open(Access, ShareMode, &_result);
  179. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  180. return IMSMQQueuePtr(_result, false);
  181. }
  182. inline HRESULT IMSMQQueueInfo::Refresh ( ) {
  183. HRESULT _hr = raw_Refresh();
  184. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  185. return _hr;
  186. }
  187. inline HRESULT IMSMQQueueInfo::Update ( ) {
  188. HRESULT _hr = raw_Update();
  189. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  190. return _hr;
  191. }
  192. //
  193. // interface IMSMQQueue wrapper method implementations
  194. //
  195. inline long IMSMQQueue::GetAccess ( ) {
  196. long _result;
  197. HRESULT _hr = get_Access(&_result);
  198. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  199. return _result;
  200. }
  201. inline long IMSMQQueue::GetShareMode ( ) {
  202. long _result;
  203. HRESULT _hr = get_ShareMode(&_result);
  204. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  205. return _result;
  206. }
  207. inline IMSMQQueueInfoPtr IMSMQQueue::GetQueueInfo ( ) {
  208. struct IMSMQQueueInfo * _result;
  209. HRESULT _hr = get_QueueInfo(&_result);
  210. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  211. return IMSMQQueueInfoPtr(_result, false);
  212. }
  213. inline long IMSMQQueue::GetHandle ( ) {
  214. long _result;
  215. HRESULT _hr = get_Handle(&_result);
  216. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  217. return _result;
  218. }
  219. inline short IMSMQQueue::GetIsOpen ( ) {
  220. short _result;
  221. HRESULT _hr = get_IsOpen(&_result);
  222. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  223. return _result;
  224. }
  225. inline HRESULT IMSMQQueue::Close ( ) {
  226. HRESULT _hr = raw_Close();
  227. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  228. return _hr;
  229. }
  230. inline IMSMQMessagePtr IMSMQQueue::Receive ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  231. struct IMSMQMessage * _result;
  232. HRESULT _hr = raw_Receive(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  233. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  234. return IMSMQMessagePtr(_result, false);
  235. }
  236. inline IMSMQMessagePtr IMSMQQueue::Peek ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  237. struct IMSMQMessage * _result;
  238. HRESULT _hr = raw_Peek(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  239. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  240. return IMSMQMessagePtr(_result, false);
  241. }
  242. inline HRESULT IMSMQQueue::EnableNotification ( struct IMSMQEvent * Event, VARIANT * Cursor, VARIANT * ReceiveTimeout ) {
  243. HRESULT _hr = raw_EnableNotification(Event, Cursor, ReceiveTimeout);
  244. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  245. return _hr;
  246. }
  247. inline HRESULT IMSMQQueue::Reset ( ) {
  248. HRESULT _hr = raw_Reset();
  249. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  250. return _hr;
  251. }
  252. inline IMSMQMessagePtr IMSMQQueue::ReceiveCurrent ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  253. struct IMSMQMessage * _result;
  254. HRESULT _hr = raw_ReceiveCurrent(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  255. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  256. return IMSMQMessagePtr(_result, false);
  257. }
  258. inline IMSMQMessagePtr IMSMQQueue::PeekNext ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  259. struct IMSMQMessage * _result;
  260. HRESULT _hr = raw_PeekNext(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  261. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  262. return IMSMQMessagePtr(_result, false);
  263. }
  264. inline IMSMQMessagePtr IMSMQQueue::PeekCurrent ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  265. struct IMSMQMessage * _result;
  266. HRESULT _hr = raw_PeekCurrent(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  267. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  268. return IMSMQMessagePtr(_result, false);
  269. }
  270. //
  271. // interface IMSMQMessage wrapper method implementations
  272. //
  273. inline long IMSMQMessage::GetClass ( ) {
  274. long _result;
  275. HRESULT _hr = get_Class(&_result);
  276. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  277. return _result;
  278. }
  279. inline long IMSMQMessage::GetPrivLevel ( ) {
  280. long _result;
  281. HRESULT _hr = get_PrivLevel(&_result);
  282. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  283. return _result;
  284. }
  285. inline void IMSMQMessage::PutPrivLevel ( long plPrivLevel ) {
  286. HRESULT _hr = put_PrivLevel(plPrivLevel);
  287. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  288. }
  289. inline long IMSMQMessage::GetAuthLevel ( ) {
  290. long _result;
  291. HRESULT _hr = get_AuthLevel(&_result);
  292. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  293. return _result;
  294. }
  295. inline void IMSMQMessage::PutAuthLevel ( long plAuthLevel ) {
  296. HRESULT _hr = put_AuthLevel(plAuthLevel);
  297. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  298. }
  299. inline short IMSMQMessage::GetIsAuthenticated ( ) {
  300. short _result;
  301. HRESULT _hr = get_IsAuthenticated(&_result);
  302. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  303. return _result;
  304. }
  305. inline long IMSMQMessage::GetDelivery ( ) {
  306. long _result;
  307. HRESULT _hr = get_Delivery(&_result);
  308. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  309. return _result;
  310. }
  311. inline void IMSMQMessage::PutDelivery ( long plDelivery ) {
  312. HRESULT _hr = put_Delivery(plDelivery);
  313. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  314. }
  315. inline long IMSMQMessage::GetTrace ( ) {
  316. long _result;
  317. HRESULT _hr = get_Trace(&_result);
  318. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  319. return _result;
  320. }
  321. inline void IMSMQMessage::PutTrace ( long plTrace ) {
  322. HRESULT _hr = put_Trace(plTrace);
  323. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  324. }
  325. inline long IMSMQMessage::GetPriority ( ) {
  326. long _result;
  327. HRESULT _hr = get_Priority(&_result);
  328. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  329. return _result;
  330. }
  331. inline void IMSMQMessage::PutPriority ( long plPriority ) {
  332. HRESULT _hr = put_Priority(plPriority);
  333. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  334. }
  335. inline long IMSMQMessage::GetJournal ( ) {
  336. long _result;
  337. HRESULT _hr = get_Journal(&_result);
  338. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  339. return _result;
  340. }
  341. inline void IMSMQMessage::PutJournal ( long plJournal ) {
  342. HRESULT _hr = put_Journal(plJournal);
  343. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  344. }
  345. inline IMSMQQueueInfoPtr IMSMQMessage::GetResponseQueueInfo ( ) {
  346. struct IMSMQQueueInfo * _result;
  347. HRESULT _hr = get_ResponseQueueInfo(&_result);
  348. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  349. return IMSMQQueueInfoPtr(_result, false);
  350. }
  351. inline void IMSMQMessage::PutRefResponseQueueInfo ( struct IMSMQQueueInfo * ppqinfoResponse ) {
  352. HRESULT _hr = putref_ResponseQueueInfo(ppqinfoResponse);
  353. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  354. }
  355. inline long IMSMQMessage::GetAppSpecific ( ) {
  356. long _result;
  357. HRESULT _hr = get_AppSpecific(&_result);
  358. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  359. return _result;
  360. }
  361. inline void IMSMQMessage::PutAppSpecific ( long plAppSpecific ) {
  362. HRESULT _hr = put_AppSpecific(plAppSpecific);
  363. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  364. }
  365. inline _bstr_t IMSMQMessage::GetSourceMachineGuid ( ) {
  366. BSTR _result;
  367. HRESULT _hr = get_SourceMachineGuid(&_result);
  368. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  369. return _bstr_t(_result, false);
  370. }
  371. inline long IMSMQMessage::GetBodyLength ( ) {
  372. long _result;
  373. HRESULT _hr = get_BodyLength(&_result);
  374. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  375. return _result;
  376. }
  377. inline _variant_t IMSMQMessage::GetBody ( ) {
  378. VARIANT _result;
  379. VariantInit(&_result);
  380. HRESULT _hr = get_Body(&_result);
  381. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  382. return _variant_t(_result, false);
  383. }
  384. inline void IMSMQMessage::PutBody ( const _variant_t & pvarBody ) {
  385. HRESULT _hr = put_Body(pvarBody);
  386. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  387. }
  388. inline IMSMQQueueInfoPtr IMSMQMessage::GetAdminQueueInfo ( ) {
  389. struct IMSMQQueueInfo * _result;
  390. HRESULT _hr = get_AdminQueueInfo(&_result);
  391. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  392. return IMSMQQueueInfoPtr(_result, false);
  393. }
  394. inline void IMSMQMessage::PutRefAdminQueueInfo ( struct IMSMQQueueInfo * ppqinfoAdmin ) {
  395. HRESULT _hr = putref_AdminQueueInfo(ppqinfoAdmin);
  396. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  397. }
  398. inline _variant_t IMSMQMessage::GetId ( ) {
  399. VARIANT _result;
  400. VariantInit(&_result);
  401. HRESULT _hr = get_Id(&_result);
  402. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  403. return _variant_t(_result, false);
  404. }
  405. inline _variant_t IMSMQMessage::GetCorrelationId ( ) {
  406. VARIANT _result;
  407. VariantInit(&_result);
  408. HRESULT _hr = get_CorrelationId(&_result);
  409. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  410. return _variant_t(_result, false);
  411. }
  412. inline void IMSMQMessage::PutCorrelationId ( const _variant_t & pvarMsgId ) {
  413. HRESULT _hr = put_CorrelationId(pvarMsgId);
  414. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  415. }
  416. inline long IMSMQMessage::GetAck ( ) {
  417. long _result;
  418. HRESULT _hr = get_Ack(&_result);
  419. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  420. return _result;
  421. }
  422. inline void IMSMQMessage::PutAck ( long plAck ) {
  423. HRESULT _hr = put_Ack(plAck);
  424. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  425. }
  426. inline _bstr_t IMSMQMessage::GetLabel ( ) {
  427. BSTR _result;
  428. HRESULT _hr = get_Label(&_result);
  429. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  430. return _bstr_t(_result, false);
  431. }
  432. inline void IMSMQMessage::PutLabel ( _bstr_t pbstrLabel ) {
  433. HRESULT _hr = put_Label(pbstrLabel);
  434. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  435. }
  436. inline long IMSMQMessage::GetMaxTimeToReachQueue ( ) {
  437. long _result;
  438. HRESULT _hr = get_MaxTimeToReachQueue(&_result);
  439. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  440. return _result;
  441. }
  442. inline void IMSMQMessage::PutMaxTimeToReachQueue ( long plMaxTimeToReachQueue ) {
  443. HRESULT _hr = put_MaxTimeToReachQueue(plMaxTimeToReachQueue);
  444. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  445. }
  446. inline long IMSMQMessage::GetMaxTimeToReceive ( ) {
  447. long _result;
  448. HRESULT _hr = get_MaxTimeToReceive(&_result);
  449. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  450. return _result;
  451. }
  452. inline void IMSMQMessage::PutMaxTimeToReceive ( long plMaxTimeToReceive ) {
  453. HRESULT _hr = put_MaxTimeToReceive(plMaxTimeToReceive);
  454. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  455. }
  456. inline long IMSMQMessage::GetHashAlgorithm ( ) {
  457. long _result;
  458. HRESULT _hr = get_HashAlgorithm(&_result);
  459. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  460. return _result;
  461. }
  462. inline void IMSMQMessage::PutHashAlgorithm ( long plHashAlg ) {
  463. HRESULT _hr = put_HashAlgorithm(plHashAlg);
  464. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  465. }
  466. inline long IMSMQMessage::GetEncryptAlgorithm ( ) {
  467. long _result;
  468. HRESULT _hr = get_EncryptAlgorithm(&_result);
  469. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  470. return _result;
  471. }
  472. inline void IMSMQMessage::PutEncryptAlgorithm ( long plEncryptAlg ) {
  473. HRESULT _hr = put_EncryptAlgorithm(plEncryptAlg);
  474. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  475. }
  476. inline _variant_t IMSMQMessage::GetSentTime ( ) {
  477. VARIANT _result;
  478. VariantInit(&_result);
  479. HRESULT _hr = get_SentTime(&_result);
  480. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  481. return _variant_t(_result, false);
  482. }
  483. inline _variant_t IMSMQMessage::GetArrivedTime ( ) {
  484. VARIANT _result;
  485. VariantInit(&_result);
  486. HRESULT _hr = get_ArrivedTime(&_result);
  487. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  488. return _variant_t(_result, false);
  489. }
  490. inline IMSMQQueueInfoPtr IMSMQMessage::GetDestinationQueueInfo ( ) {
  491. struct IMSMQQueueInfo * _result;
  492. HRESULT _hr = get_DestinationQueueInfo(&_result);
  493. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  494. return IMSMQQueueInfoPtr(_result, false);
  495. }
  496. inline _variant_t IMSMQMessage::GetSenderCertificate ( ) {
  497. VARIANT _result;
  498. VariantInit(&_result);
  499. HRESULT _hr = get_SenderCertificate(&_result);
  500. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  501. return _variant_t(_result, false);
  502. }
  503. inline void IMSMQMessage::PutSenderCertificate ( const _variant_t & pvarSenderCert ) {
  504. HRESULT _hr = put_SenderCertificate(pvarSenderCert);
  505. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  506. }
  507. inline _variant_t IMSMQMessage::GetSenderId ( ) {
  508. VARIANT _result;
  509. VariantInit(&_result);
  510. HRESULT _hr = get_SenderId(&_result);
  511. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  512. return _variant_t(_result, false);
  513. }
  514. inline long IMSMQMessage::GetSenderIdType ( ) {
  515. long _result;
  516. HRESULT _hr = get_SenderIdType(&_result);
  517. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  518. return _result;
  519. }
  520. inline void IMSMQMessage::PutSenderIdType ( long plSenderIdType ) {
  521. HRESULT _hr = put_SenderIdType(plSenderIdType);
  522. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  523. }
  524. inline HRESULT IMSMQMessage::Send ( struct IMSMQQueue * DestinationQueue, VARIANT * Transaction ) {
  525. HRESULT _hr = raw_Send(DestinationQueue, Transaction);
  526. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  527. return _hr;
  528. }
  529. inline HRESULT IMSMQMessage::AttachCurrentSecurityContext ( ) {
  530. HRESULT _hr = raw_AttachCurrentSecurityContext();
  531. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  532. return _hr;
  533. }
  534. //
  535. // interface IMSMQQueueInfo2 wrapper method implementations
  536. //
  537. inline _bstr_t IMSMQQueueInfo2::GetQueueGuid ( ) {
  538. BSTR _result;
  539. HRESULT _hr = get_QueueGuid(&_result);
  540. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  541. return _bstr_t(_result, false);
  542. }
  543. inline _bstr_t IMSMQQueueInfo2::GetServiceTypeGuid ( ) {
  544. BSTR _result;
  545. HRESULT _hr = get_ServiceTypeGuid(&_result);
  546. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  547. return _bstr_t(_result, false);
  548. }
  549. inline void IMSMQQueueInfo2::PutServiceTypeGuid ( _bstr_t pbstrGuidServiceType ) {
  550. HRESULT _hr = put_ServiceTypeGuid(pbstrGuidServiceType);
  551. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  552. }
  553. inline _bstr_t IMSMQQueueInfo2::GetLabel ( ) {
  554. BSTR _result;
  555. HRESULT _hr = get_Label(&_result);
  556. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  557. return _bstr_t(_result, false);
  558. }
  559. inline void IMSMQQueueInfo2::PutLabel ( _bstr_t pbstrLabel ) {
  560. HRESULT _hr = put_Label(pbstrLabel);
  561. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  562. }
  563. inline _bstr_t IMSMQQueueInfo2::GetPathName ( ) {
  564. BSTR _result;
  565. HRESULT _hr = get_PathName(&_result);
  566. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  567. return _bstr_t(_result, false);
  568. }
  569. inline void IMSMQQueueInfo2::PutPathName ( _bstr_t pbstrPathName ) {
  570. HRESULT _hr = put_PathName(pbstrPathName);
  571. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  572. }
  573. inline _bstr_t IMSMQQueueInfo2::GetFormatName ( ) {
  574. BSTR _result;
  575. HRESULT _hr = get_FormatName(&_result);
  576. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  577. return _bstr_t(_result, false);
  578. }
  579. inline void IMSMQQueueInfo2::PutFormatName ( _bstr_t pbstrFormatName ) {
  580. HRESULT _hr = put_FormatName(pbstrFormatName);
  581. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  582. }
  583. inline short IMSMQQueueInfo2::GetIsTransactional ( ) {
  584. short _result;
  585. HRESULT _hr = get_IsTransactional(&_result);
  586. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  587. return _result;
  588. }
  589. inline long IMSMQQueueInfo2::GetPrivLevel ( ) {
  590. long _result;
  591. HRESULT _hr = get_PrivLevel(&_result);
  592. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  593. return _result;
  594. }
  595. inline void IMSMQQueueInfo2::PutPrivLevel ( long plPrivLevel ) {
  596. HRESULT _hr = put_PrivLevel(plPrivLevel);
  597. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  598. }
  599. inline long IMSMQQueueInfo2::GetJournal ( ) {
  600. long _result;
  601. HRESULT _hr = get_Journal(&_result);
  602. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  603. return _result;
  604. }
  605. inline void IMSMQQueueInfo2::PutJournal ( long plJournal ) {
  606. HRESULT _hr = put_Journal(plJournal);
  607. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  608. }
  609. inline long IMSMQQueueInfo2::GetQuota ( ) {
  610. long _result;
  611. HRESULT _hr = get_Quota(&_result);
  612. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  613. return _result;
  614. }
  615. inline void IMSMQQueueInfo2::PutQuota ( long plQuota ) {
  616. HRESULT _hr = put_Quota(plQuota);
  617. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  618. }
  619. inline long IMSMQQueueInfo2::GetBasePriority ( ) {
  620. long _result;
  621. HRESULT _hr = get_BasePriority(&_result);
  622. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  623. return _result;
  624. }
  625. inline void IMSMQQueueInfo2::PutBasePriority ( long plBasePriority ) {
  626. HRESULT _hr = put_BasePriority(plBasePriority);
  627. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  628. }
  629. inline _variant_t IMSMQQueueInfo2::GetCreateTime ( ) {
  630. VARIANT _result;
  631. VariantInit(&_result);
  632. HRESULT _hr = get_CreateTime(&_result);
  633. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  634. return _variant_t(_result, false);
  635. }
  636. inline _variant_t IMSMQQueueInfo2::GetModifyTime ( ) {
  637. VARIANT _result;
  638. VariantInit(&_result);
  639. HRESULT _hr = get_ModifyTime(&_result);
  640. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  641. return _variant_t(_result, false);
  642. }
  643. inline long IMSMQQueueInfo2::GetAuthenticate ( ) {
  644. long _result;
  645. HRESULT _hr = get_Authenticate(&_result);
  646. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  647. return _result;
  648. }
  649. inline void IMSMQQueueInfo2::PutAuthenticate ( long plAuthenticate ) {
  650. HRESULT _hr = put_Authenticate(plAuthenticate);
  651. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  652. }
  653. inline long IMSMQQueueInfo2::GetJournalQuota ( ) {
  654. long _result;
  655. HRESULT _hr = get_JournalQuota(&_result);
  656. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  657. return _result;
  658. }
  659. inline void IMSMQQueueInfo2::PutJournalQuota ( long plJournalQuota ) {
  660. HRESULT _hr = put_JournalQuota(plJournalQuota);
  661. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  662. }
  663. inline short IMSMQQueueInfo2::GetIsWorldReadable ( ) {
  664. short _result;
  665. HRESULT _hr = get_IsWorldReadable(&_result);
  666. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  667. return _result;
  668. }
  669. inline HRESULT IMSMQQueueInfo2::Create ( VARIANT * IsTransactional, VARIANT * IsWorldReadable ) {
  670. HRESULT _hr = raw_Create(IsTransactional, IsWorldReadable);
  671. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  672. return _hr;
  673. }
  674. inline HRESULT IMSMQQueueInfo2::Delete ( ) {
  675. HRESULT _hr = raw_Delete();
  676. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  677. return _hr;
  678. }
  679. inline IMSMQQueue2Ptr IMSMQQueueInfo2::Open ( long Access, long ShareMode ) {
  680. struct IMSMQQueue2 * _result;
  681. HRESULT _hr = raw_Open(Access, ShareMode, &_result);
  682. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  683. return IMSMQQueue2Ptr(_result, false);
  684. }
  685. inline HRESULT IMSMQQueueInfo2::Refresh ( ) {
  686. HRESULT _hr = raw_Refresh();
  687. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  688. return _hr;
  689. }
  690. inline HRESULT IMSMQQueueInfo2::Update ( ) {
  691. HRESULT _hr = raw_Update();
  692. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  693. return _hr;
  694. }
  695. inline _bstr_t IMSMQQueueInfo2::GetPathNameDNS ( ) {
  696. BSTR _result;
  697. HRESULT _hr = get_PathNameDNS(&_result);
  698. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  699. return _bstr_t(_result, false);
  700. }
  701. inline IDispatchPtr IMSMQQueueInfo2::GetProperties ( ) {
  702. IDispatch * _result;
  703. HRESULT _hr = get_Properties(&_result);
  704. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  705. return IDispatchPtr(_result, false);
  706. }
  707. inline _variant_t IMSMQQueueInfo2::GetSecurity ( ) {
  708. VARIANT _result;
  709. VariantInit(&_result);
  710. HRESULT _hr = get_Security(&_result);
  711. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  712. return _variant_t(_result, false);
  713. }
  714. inline void IMSMQQueueInfo2::PutSecurity ( const _variant_t & pvarSecurity ) {
  715. HRESULT _hr = put_Security(pvarSecurity);
  716. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  717. }
  718. //
  719. // interface IMSMQQueue2 wrapper method implementations
  720. //
  721. inline long IMSMQQueue2::GetAccess ( ) {
  722. long _result;
  723. HRESULT _hr = get_Access(&_result);
  724. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  725. return _result;
  726. }
  727. inline long IMSMQQueue2::GetShareMode ( ) {
  728. long _result;
  729. HRESULT _hr = get_ShareMode(&_result);
  730. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  731. return _result;
  732. }
  733. inline IMSMQQueueInfo2Ptr IMSMQQueue2::GetQueueInfo ( ) {
  734. struct IMSMQQueueInfo2 * _result;
  735. HRESULT _hr = get_QueueInfo(&_result);
  736. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  737. return IMSMQQueueInfo2Ptr(_result, false);
  738. }
  739. inline long IMSMQQueue2::GetHandle ( ) {
  740. long _result;
  741. HRESULT _hr = get_Handle(&_result);
  742. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  743. return _result;
  744. }
  745. inline short IMSMQQueue2::GetIsOpen ( ) {
  746. short _result;
  747. HRESULT _hr = get_IsOpen(&_result);
  748. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  749. return _result;
  750. }
  751. inline HRESULT IMSMQQueue2::Close ( ) {
  752. HRESULT _hr = raw_Close();
  753. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  754. return _hr;
  755. }
  756. inline IMSMQMessagePtr IMSMQQueue2::Receive_v1 ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  757. struct IMSMQMessage * _result;
  758. HRESULT _hr = raw_Receive_v1(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  759. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  760. return IMSMQMessagePtr(_result, false);
  761. }
  762. inline IMSMQMessagePtr IMSMQQueue2::Peek_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  763. struct IMSMQMessage * _result;
  764. HRESULT _hr = raw_Peek_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  765. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  766. return IMSMQMessagePtr(_result, false);
  767. }
  768. inline HRESULT IMSMQQueue2::EnableNotification ( struct IMSMQEvent2 * Event, VARIANT * Cursor, VARIANT * ReceiveTimeout ) {
  769. HRESULT _hr = raw_EnableNotification(Event, Cursor, ReceiveTimeout);
  770. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  771. return _hr;
  772. }
  773. inline HRESULT IMSMQQueue2::Reset ( ) {
  774. HRESULT _hr = raw_Reset();
  775. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  776. return _hr;
  777. }
  778. inline IMSMQMessagePtr IMSMQQueue2::ReceiveCurrent_v1 ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  779. struct IMSMQMessage * _result;
  780. HRESULT _hr = raw_ReceiveCurrent_v1(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  781. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  782. return IMSMQMessagePtr(_result, false);
  783. }
  784. inline IMSMQMessagePtr IMSMQQueue2::PeekNext_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  785. struct IMSMQMessage * _result;
  786. HRESULT _hr = raw_PeekNext_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  787. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  788. return IMSMQMessagePtr(_result, false);
  789. }
  790. inline IMSMQMessagePtr IMSMQQueue2::PeekCurrent_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  791. struct IMSMQMessage * _result;
  792. HRESULT _hr = raw_PeekCurrent_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  793. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  794. return IMSMQMessagePtr(_result, false);
  795. }
  796. inline IMSMQMessage2Ptr IMSMQQueue2::Receive ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  797. struct IMSMQMessage2 * _result;
  798. HRESULT _hr = raw_Receive(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  799. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  800. return IMSMQMessage2Ptr(_result, false);
  801. }
  802. inline IMSMQMessage2Ptr IMSMQQueue2::Peek ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  803. struct IMSMQMessage2 * _result;
  804. HRESULT _hr = raw_Peek(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  805. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  806. return IMSMQMessage2Ptr(_result, false);
  807. }
  808. inline IMSMQMessage2Ptr IMSMQQueue2::ReceiveCurrent ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  809. struct IMSMQMessage2 * _result;
  810. HRESULT _hr = raw_ReceiveCurrent(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  811. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  812. return IMSMQMessage2Ptr(_result, false);
  813. }
  814. inline IMSMQMessage2Ptr IMSMQQueue2::PeekNext ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  815. struct IMSMQMessage2 * _result;
  816. HRESULT _hr = raw_PeekNext(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  817. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  818. return IMSMQMessage2Ptr(_result, false);
  819. }
  820. inline IMSMQMessage2Ptr IMSMQQueue2::PeekCurrent ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  821. struct IMSMQMessage2 * _result;
  822. HRESULT _hr = raw_PeekCurrent(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  823. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  824. return IMSMQMessage2Ptr(_result, false);
  825. }
  826. inline IDispatchPtr IMSMQQueue2::GetProperties ( ) {
  827. IDispatch * _result;
  828. HRESULT _hr = get_Properties(&_result);
  829. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  830. return IDispatchPtr(_result, false);
  831. }
  832. //
  833. // interface IMSMQEvent2 wrapper method implementations
  834. //
  835. inline IDispatchPtr IMSMQEvent2::GetProperties ( ) {
  836. IDispatch * _result;
  837. HRESULT _hr = get_Properties(&_result);
  838. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  839. return IDispatchPtr(_result, false);
  840. }
  841. //
  842. // interface IMSMQMessage2 wrapper method implementations
  843. //
  844. inline long IMSMQMessage2::GetClass ( ) {
  845. long _result;
  846. HRESULT _hr = get_Class(&_result);
  847. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  848. return _result;
  849. }
  850. inline long IMSMQMessage2::GetPrivLevel ( ) {
  851. long _result;
  852. HRESULT _hr = get_PrivLevel(&_result);
  853. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  854. return _result;
  855. }
  856. inline void IMSMQMessage2::PutPrivLevel ( long plPrivLevel ) {
  857. HRESULT _hr = put_PrivLevel(plPrivLevel);
  858. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  859. }
  860. inline long IMSMQMessage2::GetAuthLevel ( ) {
  861. long _result;
  862. HRESULT _hr = get_AuthLevel(&_result);
  863. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  864. return _result;
  865. }
  866. inline void IMSMQMessage2::PutAuthLevel ( long plAuthLevel ) {
  867. HRESULT _hr = put_AuthLevel(plAuthLevel);
  868. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  869. }
  870. inline short IMSMQMessage2::GetIsAuthenticated ( ) {
  871. short _result;
  872. HRESULT _hr = get_IsAuthenticated(&_result);
  873. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  874. return _result;
  875. }
  876. inline long IMSMQMessage2::GetDelivery ( ) {
  877. long _result;
  878. HRESULT _hr = get_Delivery(&_result);
  879. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  880. return _result;
  881. }
  882. inline void IMSMQMessage2::PutDelivery ( long plDelivery ) {
  883. HRESULT _hr = put_Delivery(plDelivery);
  884. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  885. }
  886. inline long IMSMQMessage2::GetTrace ( ) {
  887. long _result;
  888. HRESULT _hr = get_Trace(&_result);
  889. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  890. return _result;
  891. }
  892. inline void IMSMQMessage2::PutTrace ( long plTrace ) {
  893. HRESULT _hr = put_Trace(plTrace);
  894. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  895. }
  896. inline long IMSMQMessage2::GetPriority ( ) {
  897. long _result;
  898. HRESULT _hr = get_Priority(&_result);
  899. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  900. return _result;
  901. }
  902. inline void IMSMQMessage2::PutPriority ( long plPriority ) {
  903. HRESULT _hr = put_Priority(plPriority);
  904. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  905. }
  906. inline long IMSMQMessage2::GetJournal ( ) {
  907. long _result;
  908. HRESULT _hr = get_Journal(&_result);
  909. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  910. return _result;
  911. }
  912. inline void IMSMQMessage2::PutJournal ( long plJournal ) {
  913. HRESULT _hr = put_Journal(plJournal);
  914. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  915. }
  916. inline IMSMQQueueInfoPtr IMSMQMessage2::GetResponseQueueInfo_v1 ( ) {
  917. struct IMSMQQueueInfo * _result;
  918. HRESULT _hr = get_ResponseQueueInfo_v1(&_result);
  919. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  920. return IMSMQQueueInfoPtr(_result, false);
  921. }
  922. inline void IMSMQMessage2::PutRefResponseQueueInfo_v1 ( struct IMSMQQueueInfo * ppqinfoResponse ) {
  923. HRESULT _hr = putref_ResponseQueueInfo_v1(ppqinfoResponse);
  924. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  925. }
  926. inline long IMSMQMessage2::GetAppSpecific ( ) {
  927. long _result;
  928. HRESULT _hr = get_AppSpecific(&_result);
  929. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  930. return _result;
  931. }
  932. inline void IMSMQMessage2::PutAppSpecific ( long plAppSpecific ) {
  933. HRESULT _hr = put_AppSpecific(plAppSpecific);
  934. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  935. }
  936. inline _bstr_t IMSMQMessage2::GetSourceMachineGuid ( ) {
  937. BSTR _result;
  938. HRESULT _hr = get_SourceMachineGuid(&_result);
  939. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  940. return _bstr_t(_result, false);
  941. }
  942. inline long IMSMQMessage2::GetBodyLength ( ) {
  943. long _result;
  944. HRESULT _hr = get_BodyLength(&_result);
  945. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  946. return _result;
  947. }
  948. inline _variant_t IMSMQMessage2::GetBody ( ) {
  949. VARIANT _result;
  950. VariantInit(&_result);
  951. HRESULT _hr = get_Body(&_result);
  952. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  953. return _variant_t(_result, false);
  954. }
  955. inline void IMSMQMessage2::PutBody ( const _variant_t & pvarBody ) {
  956. HRESULT _hr = put_Body(pvarBody);
  957. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  958. }
  959. inline IMSMQQueueInfoPtr IMSMQMessage2::GetAdminQueueInfo_v1 ( ) {
  960. struct IMSMQQueueInfo * _result;
  961. HRESULT _hr = get_AdminQueueInfo_v1(&_result);
  962. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  963. return IMSMQQueueInfoPtr(_result, false);
  964. }
  965. inline void IMSMQMessage2::PutRefAdminQueueInfo_v1 ( struct IMSMQQueueInfo * ppqinfoAdmin ) {
  966. HRESULT _hr = putref_AdminQueueInfo_v1(ppqinfoAdmin);
  967. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  968. }
  969. inline _variant_t IMSMQMessage2::GetId ( ) {
  970. VARIANT _result;
  971. VariantInit(&_result);
  972. HRESULT _hr = get_Id(&_result);
  973. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  974. return _variant_t(_result, false);
  975. }
  976. inline _variant_t IMSMQMessage2::GetCorrelationId ( ) {
  977. VARIANT _result;
  978. VariantInit(&_result);
  979. HRESULT _hr = get_CorrelationId(&_result);
  980. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  981. return _variant_t(_result, false);
  982. }
  983. inline void IMSMQMessage2::PutCorrelationId ( const _variant_t & pvarMsgId ) {
  984. HRESULT _hr = put_CorrelationId(pvarMsgId);
  985. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  986. }
  987. inline long IMSMQMessage2::GetAck ( ) {
  988. long _result;
  989. HRESULT _hr = get_Ack(&_result);
  990. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  991. return _result;
  992. }
  993. inline void IMSMQMessage2::PutAck ( long plAck ) {
  994. HRESULT _hr = put_Ack(plAck);
  995. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  996. }
  997. inline _bstr_t IMSMQMessage2::GetLabel ( ) {
  998. BSTR _result;
  999. HRESULT _hr = get_Label(&_result);
  1000. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1001. return _bstr_t(_result, false);
  1002. }
  1003. inline void IMSMQMessage2::PutLabel ( _bstr_t pbstrLabel ) {
  1004. HRESULT _hr = put_Label(pbstrLabel);
  1005. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1006. }
  1007. inline long IMSMQMessage2::GetMaxTimeToReachQueue ( ) {
  1008. long _result;
  1009. HRESULT _hr = get_MaxTimeToReachQueue(&_result);
  1010. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1011. return _result;
  1012. }
  1013. inline void IMSMQMessage2::PutMaxTimeToReachQueue ( long plMaxTimeToReachQueue ) {
  1014. HRESULT _hr = put_MaxTimeToReachQueue(plMaxTimeToReachQueue);
  1015. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1016. }
  1017. inline long IMSMQMessage2::GetMaxTimeToReceive ( ) {
  1018. long _result;
  1019. HRESULT _hr = get_MaxTimeToReceive(&_result);
  1020. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1021. return _result;
  1022. }
  1023. inline void IMSMQMessage2::PutMaxTimeToReceive ( long plMaxTimeToReceive ) {
  1024. HRESULT _hr = put_MaxTimeToReceive(plMaxTimeToReceive);
  1025. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1026. }
  1027. inline long IMSMQMessage2::GetHashAlgorithm ( ) {
  1028. long _result;
  1029. HRESULT _hr = get_HashAlgorithm(&_result);
  1030. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1031. return _result;
  1032. }
  1033. inline void IMSMQMessage2::PutHashAlgorithm ( long plHashAlg ) {
  1034. HRESULT _hr = put_HashAlgorithm(plHashAlg);
  1035. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1036. }
  1037. inline long IMSMQMessage2::GetEncryptAlgorithm ( ) {
  1038. long _result;
  1039. HRESULT _hr = get_EncryptAlgorithm(&_result);
  1040. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1041. return _result;
  1042. }
  1043. inline void IMSMQMessage2::PutEncryptAlgorithm ( long plEncryptAlg ) {
  1044. HRESULT _hr = put_EncryptAlgorithm(plEncryptAlg);
  1045. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1046. }
  1047. inline _variant_t IMSMQMessage2::GetSentTime ( ) {
  1048. VARIANT _result;
  1049. VariantInit(&_result);
  1050. HRESULT _hr = get_SentTime(&_result);
  1051. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1052. return _variant_t(_result, false);
  1053. }
  1054. inline _variant_t IMSMQMessage2::GetArrivedTime ( ) {
  1055. VARIANT _result;
  1056. VariantInit(&_result);
  1057. HRESULT _hr = get_ArrivedTime(&_result);
  1058. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1059. return _variant_t(_result, false);
  1060. }
  1061. inline IMSMQQueueInfo2Ptr IMSMQMessage2::GetDestinationQueueInfo ( ) {
  1062. struct IMSMQQueueInfo2 * _result;
  1063. HRESULT _hr = get_DestinationQueueInfo(&_result);
  1064. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1065. return IMSMQQueueInfo2Ptr(_result, false);
  1066. }
  1067. inline _variant_t IMSMQMessage2::GetSenderCertificate ( ) {
  1068. VARIANT _result;
  1069. VariantInit(&_result);
  1070. HRESULT _hr = get_SenderCertificate(&_result);
  1071. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1072. return _variant_t(_result, false);
  1073. }
  1074. inline void IMSMQMessage2::PutSenderCertificate ( const _variant_t & pvarSenderCert ) {
  1075. HRESULT _hr = put_SenderCertificate(pvarSenderCert);
  1076. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1077. }
  1078. inline _variant_t IMSMQMessage2::GetSenderId ( ) {
  1079. VARIANT _result;
  1080. VariantInit(&_result);
  1081. HRESULT _hr = get_SenderId(&_result);
  1082. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1083. return _variant_t(_result, false);
  1084. }
  1085. inline long IMSMQMessage2::GetSenderIdType ( ) {
  1086. long _result;
  1087. HRESULT _hr = get_SenderIdType(&_result);
  1088. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1089. return _result;
  1090. }
  1091. inline void IMSMQMessage2::PutSenderIdType ( long plSenderIdType ) {
  1092. HRESULT _hr = put_SenderIdType(plSenderIdType);
  1093. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1094. }
  1095. inline HRESULT IMSMQMessage2::Send ( struct IMSMQQueue2 * DestinationQueue, VARIANT * Transaction ) {
  1096. HRESULT _hr = raw_Send(DestinationQueue, Transaction);
  1097. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1098. return _hr;
  1099. }
  1100. inline HRESULT IMSMQMessage2::AttachCurrentSecurityContext ( ) {
  1101. HRESULT _hr = raw_AttachCurrentSecurityContext();
  1102. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1103. return _hr;
  1104. }
  1105. inline long IMSMQMessage2::GetSenderVersion ( ) {
  1106. long _result;
  1107. HRESULT _hr = get_SenderVersion(&_result);
  1108. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1109. return _result;
  1110. }
  1111. inline _variant_t IMSMQMessage2::GetExtension ( ) {
  1112. VARIANT _result;
  1113. VariantInit(&_result);
  1114. HRESULT _hr = get_Extension(&_result);
  1115. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1116. return _variant_t(_result, false);
  1117. }
  1118. inline void IMSMQMessage2::PutExtension ( const _variant_t & pvarExtension ) {
  1119. HRESULT _hr = put_Extension(pvarExtension);
  1120. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1121. }
  1122. inline _bstr_t IMSMQMessage2::GetConnectorTypeGuid ( ) {
  1123. BSTR _result;
  1124. HRESULT _hr = get_ConnectorTypeGuid(&_result);
  1125. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1126. return _bstr_t(_result, false);
  1127. }
  1128. inline void IMSMQMessage2::PutConnectorTypeGuid ( _bstr_t pbstrGuidConnectorType ) {
  1129. HRESULT _hr = put_ConnectorTypeGuid(pbstrGuidConnectorType);
  1130. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1131. }
  1132. inline IMSMQQueueInfo2Ptr IMSMQMessage2::GetTransactionStatusQueueInfo ( ) {
  1133. struct IMSMQQueueInfo2 * _result;
  1134. HRESULT _hr = get_TransactionStatusQueueInfo(&_result);
  1135. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1136. return IMSMQQueueInfo2Ptr(_result, false);
  1137. }
  1138. inline _variant_t IMSMQMessage2::GetDestinationSymmetricKey ( ) {
  1139. VARIANT _result;
  1140. VariantInit(&_result);
  1141. HRESULT _hr = get_DestinationSymmetricKey(&_result);
  1142. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1143. return _variant_t(_result, false);
  1144. }
  1145. inline void IMSMQMessage2::PutDestinationSymmetricKey ( const _variant_t & pvarDestSymmKey ) {
  1146. HRESULT _hr = put_DestinationSymmetricKey(pvarDestSymmKey);
  1147. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1148. }
  1149. inline _variant_t IMSMQMessage2::GetSignature ( ) {
  1150. VARIANT _result;
  1151. VariantInit(&_result);
  1152. HRESULT _hr = get_Signature(&_result);
  1153. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1154. return _variant_t(_result, false);
  1155. }
  1156. inline void IMSMQMessage2::PutSignature ( const _variant_t & pvarSignature ) {
  1157. HRESULT _hr = put_Signature(pvarSignature);
  1158. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1159. }
  1160. inline long IMSMQMessage2::GetAuthenticationProviderType ( ) {
  1161. long _result;
  1162. HRESULT _hr = get_AuthenticationProviderType(&_result);
  1163. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1164. return _result;
  1165. }
  1166. inline void IMSMQMessage2::PutAuthenticationProviderType ( long plAuthProvType ) {
  1167. HRESULT _hr = put_AuthenticationProviderType(plAuthProvType);
  1168. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1169. }
  1170. inline _bstr_t IMSMQMessage2::GetAuthenticationProviderName ( ) {
  1171. BSTR _result;
  1172. HRESULT _hr = get_AuthenticationProviderName(&_result);
  1173. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1174. return _bstr_t(_result, false);
  1175. }
  1176. inline void IMSMQMessage2::PutAuthenticationProviderName ( _bstr_t pbstrAuthProvName ) {
  1177. HRESULT _hr = put_AuthenticationProviderName(pbstrAuthProvName);
  1178. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1179. }
  1180. inline void IMSMQMessage2::PutSenderId ( const _variant_t & pvarSenderId ) {
  1181. HRESULT _hr = put_SenderId(pvarSenderId);
  1182. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1183. }
  1184. inline long IMSMQMessage2::GetMsgClass ( ) {
  1185. long _result;
  1186. HRESULT _hr = get_MsgClass(&_result);
  1187. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1188. return _result;
  1189. }
  1190. inline void IMSMQMessage2::PutMsgClass ( long plMsgClass ) {
  1191. HRESULT _hr = put_MsgClass(plMsgClass);
  1192. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1193. }
  1194. inline IDispatchPtr IMSMQMessage2::GetProperties ( ) {
  1195. IDispatch * _result;
  1196. HRESULT _hr = get_Properties(&_result);
  1197. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1198. return IDispatchPtr(_result, false);
  1199. }
  1200. inline _variant_t IMSMQMessage2::GetTransactionId ( ) {
  1201. VARIANT _result;
  1202. VariantInit(&_result);
  1203. HRESULT _hr = get_TransactionId(&_result);
  1204. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1205. return _variant_t(_result, false);
  1206. }
  1207. inline short IMSMQMessage2::GetIsFirstInTransaction ( ) {
  1208. short _result;
  1209. HRESULT _hr = get_IsFirstInTransaction(&_result);
  1210. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1211. return _result;
  1212. }
  1213. inline short IMSMQMessage2::GetIsLastInTransaction ( ) {
  1214. short _result;
  1215. HRESULT _hr = get_IsLastInTransaction(&_result);
  1216. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1217. return _result;
  1218. }
  1219. inline IMSMQQueueInfo2Ptr IMSMQMessage2::GetResponseQueueInfo ( ) {
  1220. struct IMSMQQueueInfo2 * _result;
  1221. HRESULT _hr = get_ResponseQueueInfo(&_result);
  1222. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1223. return IMSMQQueueInfo2Ptr(_result, false);
  1224. }
  1225. inline void IMSMQMessage2::PutRefResponseQueueInfo ( struct IMSMQQueueInfo2 * ppqinfoResponse ) {
  1226. HRESULT _hr = putref_ResponseQueueInfo(ppqinfoResponse);
  1227. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1228. }
  1229. inline IMSMQQueueInfo2Ptr IMSMQMessage2::GetAdminQueueInfo ( ) {
  1230. struct IMSMQQueueInfo2 * _result;
  1231. HRESULT _hr = get_AdminQueueInfo(&_result);
  1232. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1233. return IMSMQQueueInfo2Ptr(_result, false);
  1234. }
  1235. inline void IMSMQMessage2::PutRefAdminQueueInfo ( struct IMSMQQueueInfo2 * ppqinfoAdmin ) {
  1236. HRESULT _hr = putref_AdminQueueInfo(ppqinfoAdmin);
  1237. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1238. }
  1239. inline short IMSMQMessage2::GetReceivedAuthenticationLevel ( ) {
  1240. short _result;
  1241. HRESULT _hr = get_ReceivedAuthenticationLevel(&_result);
  1242. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1243. return _result;
  1244. }
  1245. //
  1246. // interface IMSMQQueueInfo3 wrapper method implementations
  1247. //
  1248. inline _bstr_t IMSMQQueueInfo3::GetQueueGuid ( ) {
  1249. BSTR _result;
  1250. HRESULT _hr = get_QueueGuid(&_result);
  1251. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1252. return _bstr_t(_result, false);
  1253. }
  1254. inline _bstr_t IMSMQQueueInfo3::GetServiceTypeGuid ( ) {
  1255. BSTR _result;
  1256. HRESULT _hr = get_ServiceTypeGuid(&_result);
  1257. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1258. return _bstr_t(_result, false);
  1259. }
  1260. inline void IMSMQQueueInfo3::PutServiceTypeGuid ( _bstr_t pbstrGuidServiceType ) {
  1261. HRESULT _hr = put_ServiceTypeGuid(pbstrGuidServiceType);
  1262. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1263. }
  1264. inline _bstr_t IMSMQQueueInfo3::GetLabel ( ) {
  1265. BSTR _result;
  1266. HRESULT _hr = get_Label(&_result);
  1267. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1268. return _bstr_t(_result, false);
  1269. }
  1270. inline void IMSMQQueueInfo3::PutLabel ( _bstr_t pbstrLabel ) {
  1271. HRESULT _hr = put_Label(pbstrLabel);
  1272. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1273. }
  1274. inline _bstr_t IMSMQQueueInfo3::GetPathName ( ) {
  1275. BSTR _result;
  1276. HRESULT _hr = get_PathName(&_result);
  1277. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1278. return _bstr_t(_result, false);
  1279. }
  1280. inline void IMSMQQueueInfo3::PutPathName ( _bstr_t pbstrPathName ) {
  1281. HRESULT _hr = put_PathName(pbstrPathName);
  1282. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1283. }
  1284. inline _bstr_t IMSMQQueueInfo3::GetFormatName ( ) {
  1285. BSTR _result;
  1286. HRESULT _hr = get_FormatName(&_result);
  1287. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1288. return _bstr_t(_result, false);
  1289. }
  1290. inline void IMSMQQueueInfo3::PutFormatName ( _bstr_t pbstrFormatName ) {
  1291. HRESULT _hr = put_FormatName(pbstrFormatName);
  1292. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1293. }
  1294. inline short IMSMQQueueInfo3::GetIsTransactional ( ) {
  1295. short _result;
  1296. HRESULT _hr = get_IsTransactional(&_result);
  1297. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1298. return _result;
  1299. }
  1300. inline long IMSMQQueueInfo3::GetPrivLevel ( ) {
  1301. long _result;
  1302. HRESULT _hr = get_PrivLevel(&_result);
  1303. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1304. return _result;
  1305. }
  1306. inline void IMSMQQueueInfo3::PutPrivLevel ( long plPrivLevel ) {
  1307. HRESULT _hr = put_PrivLevel(plPrivLevel);
  1308. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1309. }
  1310. inline long IMSMQQueueInfo3::GetJournal ( ) {
  1311. long _result;
  1312. HRESULT _hr = get_Journal(&_result);
  1313. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1314. return _result;
  1315. }
  1316. inline void IMSMQQueueInfo3::PutJournal ( long plJournal ) {
  1317. HRESULT _hr = put_Journal(plJournal);
  1318. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1319. }
  1320. inline long IMSMQQueueInfo3::GetQuota ( ) {
  1321. long _result;
  1322. HRESULT _hr = get_Quota(&_result);
  1323. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1324. return _result;
  1325. }
  1326. inline void IMSMQQueueInfo3::PutQuota ( long plQuota ) {
  1327. HRESULT _hr = put_Quota(plQuota);
  1328. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1329. }
  1330. inline long IMSMQQueueInfo3::GetBasePriority ( ) {
  1331. long _result;
  1332. HRESULT _hr = get_BasePriority(&_result);
  1333. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1334. return _result;
  1335. }
  1336. inline void IMSMQQueueInfo3::PutBasePriority ( long plBasePriority ) {
  1337. HRESULT _hr = put_BasePriority(plBasePriority);
  1338. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1339. }
  1340. inline _variant_t IMSMQQueueInfo3::GetCreateTime ( ) {
  1341. VARIANT _result;
  1342. VariantInit(&_result);
  1343. HRESULT _hr = get_CreateTime(&_result);
  1344. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1345. return _variant_t(_result, false);
  1346. }
  1347. inline _variant_t IMSMQQueueInfo3::GetModifyTime ( ) {
  1348. VARIANT _result;
  1349. VariantInit(&_result);
  1350. HRESULT _hr = get_ModifyTime(&_result);
  1351. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1352. return _variant_t(_result, false);
  1353. }
  1354. inline long IMSMQQueueInfo3::GetAuthenticate ( ) {
  1355. long _result;
  1356. HRESULT _hr = get_Authenticate(&_result);
  1357. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1358. return _result;
  1359. }
  1360. inline void IMSMQQueueInfo3::PutAuthenticate ( long plAuthenticate ) {
  1361. HRESULT _hr = put_Authenticate(plAuthenticate);
  1362. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1363. }
  1364. inline long IMSMQQueueInfo3::GetJournalQuota ( ) {
  1365. long _result;
  1366. HRESULT _hr = get_JournalQuota(&_result);
  1367. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1368. return _result;
  1369. }
  1370. inline void IMSMQQueueInfo3::PutJournalQuota ( long plJournalQuota ) {
  1371. HRESULT _hr = put_JournalQuota(plJournalQuota);
  1372. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1373. }
  1374. inline short IMSMQQueueInfo3::GetIsWorldReadable ( ) {
  1375. short _result;
  1376. HRESULT _hr = get_IsWorldReadable(&_result);
  1377. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1378. return _result;
  1379. }
  1380. inline HRESULT IMSMQQueueInfo3::Create ( VARIANT * IsTransactional, VARIANT * IsWorldReadable ) {
  1381. HRESULT _hr = raw_Create(IsTransactional, IsWorldReadable);
  1382. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1383. return _hr;
  1384. }
  1385. inline HRESULT IMSMQQueueInfo3::Delete ( ) {
  1386. HRESULT _hr = raw_Delete();
  1387. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1388. return _hr;
  1389. }
  1390. inline IMSMQQueue3Ptr IMSMQQueueInfo3::Open ( long Access, long ShareMode ) {
  1391. struct IMSMQQueue3 * _result;
  1392. HRESULT _hr = raw_Open(Access, ShareMode, &_result);
  1393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1394. return IMSMQQueue3Ptr(_result, false);
  1395. }
  1396. inline HRESULT IMSMQQueueInfo3::Refresh ( ) {
  1397. HRESULT _hr = raw_Refresh();
  1398. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1399. return _hr;
  1400. }
  1401. inline HRESULT IMSMQQueueInfo3::Update ( ) {
  1402. HRESULT _hr = raw_Update();
  1403. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1404. return _hr;
  1405. }
  1406. inline _bstr_t IMSMQQueueInfo3::GetPathNameDNS ( ) {
  1407. BSTR _result;
  1408. HRESULT _hr = get_PathNameDNS(&_result);
  1409. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1410. return _bstr_t(_result, false);
  1411. }
  1412. inline IDispatchPtr IMSMQQueueInfo3::GetProperties ( ) {
  1413. IDispatch * _result;
  1414. HRESULT _hr = get_Properties(&_result);
  1415. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1416. return IDispatchPtr(_result, false);
  1417. }
  1418. inline _variant_t IMSMQQueueInfo3::GetSecurity ( ) {
  1419. VARIANT _result;
  1420. VariantInit(&_result);
  1421. HRESULT _hr = get_Security(&_result);
  1422. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1423. return _variant_t(_result, false);
  1424. }
  1425. inline void IMSMQQueueInfo3::PutSecurity ( const _variant_t & pvarSecurity ) {
  1426. HRESULT _hr = put_Security(pvarSecurity);
  1427. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1428. }
  1429. inline VARIANT_BOOL IMSMQQueueInfo3::GetIsTransactional2 ( ) {
  1430. VARIANT_BOOL _result;
  1431. HRESULT _hr = get_IsTransactional2(&_result);
  1432. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1433. return _result;
  1434. }
  1435. inline VARIANT_BOOL IMSMQQueueInfo3::GetIsWorldReadable2 ( ) {
  1436. VARIANT_BOOL _result;
  1437. HRESULT _hr = get_IsWorldReadable2(&_result);
  1438. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1439. return _result;
  1440. }
  1441. inline _bstr_t IMSMQQueueInfo3::GetMulticastAddress ( ) {
  1442. BSTR _result;
  1443. HRESULT _hr = get_MulticastAddress(&_result);
  1444. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1445. return _bstr_t(_result, false);
  1446. }
  1447. inline void IMSMQQueueInfo3::PutMulticastAddress ( _bstr_t pbstrMulticastAddress ) {
  1448. HRESULT _hr = put_MulticastAddress(pbstrMulticastAddress);
  1449. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1450. }
  1451. inline _bstr_t IMSMQQueueInfo3::GetADsPath ( ) {
  1452. BSTR _result;
  1453. HRESULT _hr = get_ADsPath(&_result);
  1454. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1455. return _bstr_t(_result, false);
  1456. }
  1457. //
  1458. // interface IMSMQQueue3 wrapper method implementations
  1459. //
  1460. inline long IMSMQQueue3::GetAccess ( ) {
  1461. long _result;
  1462. HRESULT _hr = get_Access(&_result);
  1463. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1464. return _result;
  1465. }
  1466. inline long IMSMQQueue3::GetShareMode ( ) {
  1467. long _result;
  1468. HRESULT _hr = get_ShareMode(&_result);
  1469. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1470. return _result;
  1471. }
  1472. inline IMSMQQueueInfo3Ptr IMSMQQueue3::GetQueueInfo ( ) {
  1473. struct IMSMQQueueInfo3 * _result;
  1474. HRESULT _hr = get_QueueInfo(&_result);
  1475. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1476. return IMSMQQueueInfo3Ptr(_result, false);
  1477. }
  1478. inline long IMSMQQueue3::GetHandle ( ) {
  1479. long _result;
  1480. HRESULT _hr = get_Handle(&_result);
  1481. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1482. return _result;
  1483. }
  1484. inline short IMSMQQueue3::GetIsOpen ( ) {
  1485. short _result;
  1486. HRESULT _hr = get_IsOpen(&_result);
  1487. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1488. return _result;
  1489. }
  1490. inline HRESULT IMSMQQueue3::Close ( ) {
  1491. HRESULT _hr = raw_Close();
  1492. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1493. return _hr;
  1494. }
  1495. inline IMSMQMessagePtr IMSMQQueue3::Receive_v1 ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  1496. struct IMSMQMessage * _result;
  1497. HRESULT _hr = raw_Receive_v1(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  1498. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1499. return IMSMQMessagePtr(_result, false);
  1500. }
  1501. inline IMSMQMessagePtr IMSMQQueue3::Peek_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  1502. struct IMSMQMessage * _result;
  1503. HRESULT _hr = raw_Peek_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  1504. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1505. return IMSMQMessagePtr(_result, false);
  1506. }
  1507. inline HRESULT IMSMQQueue3::EnableNotification ( struct IMSMQEvent3 * Event, VARIANT * Cursor, VARIANT * ReceiveTimeout ) {
  1508. HRESULT _hr = raw_EnableNotification(Event, Cursor, ReceiveTimeout);
  1509. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1510. return _hr;
  1511. }
  1512. inline HRESULT IMSMQQueue3::Reset ( ) {
  1513. HRESULT _hr = raw_Reset();
  1514. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1515. return _hr;
  1516. }
  1517. inline IMSMQMessagePtr IMSMQQueue3::ReceiveCurrent_v1 ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  1518. struct IMSMQMessage * _result;
  1519. HRESULT _hr = raw_ReceiveCurrent_v1(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  1520. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1521. return IMSMQMessagePtr(_result, false);
  1522. }
  1523. inline IMSMQMessagePtr IMSMQQueue3::PeekNext_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  1524. struct IMSMQMessage * _result;
  1525. HRESULT _hr = raw_PeekNext_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  1526. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1527. return IMSMQMessagePtr(_result, false);
  1528. }
  1529. inline IMSMQMessagePtr IMSMQQueue3::PeekCurrent_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
  1530. struct IMSMQMessage * _result;
  1531. HRESULT _hr = raw_PeekCurrent_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
  1532. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1533. return IMSMQMessagePtr(_result, false);
  1534. }
  1535. inline IMSMQMessage3Ptr IMSMQQueue3::Receive ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  1536. struct IMSMQMessage3 * _result;
  1537. HRESULT _hr = raw_Receive(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  1538. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1539. return IMSMQMessage3Ptr(_result, false);
  1540. }
  1541. inline IMSMQMessage3Ptr IMSMQQueue3::Peek ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  1542. struct IMSMQMessage3 * _result;
  1543. HRESULT _hr = raw_Peek(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  1544. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1545. return IMSMQMessage3Ptr(_result, false);
  1546. }
  1547. inline IMSMQMessage3Ptr IMSMQQueue3::ReceiveCurrent ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  1548. struct IMSMQMessage3 * _result;
  1549. HRESULT _hr = raw_ReceiveCurrent(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  1550. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1551. return IMSMQMessage3Ptr(_result, false);
  1552. }
  1553. inline IMSMQMessage3Ptr IMSMQQueue3::PeekNext ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  1554. struct IMSMQMessage3 * _result;
  1555. HRESULT _hr = raw_PeekNext(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  1556. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1557. return IMSMQMessage3Ptr(_result, false);
  1558. }
  1559. inline IMSMQMessage3Ptr IMSMQQueue3::PeekCurrent ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
  1560. struct IMSMQMessage3 * _result;
  1561. HRESULT _hr = raw_PeekCurrent(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
  1562. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1563. return IMSMQMessage3Ptr(_result, false);
  1564. }
  1565. inline IDispatchPtr IMSMQQueue3::GetProperties ( ) {
  1566. IDispatch * _result;
  1567. HRESULT _hr = get_Properties(&_result);
  1568. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1569. return IDispatchPtr(_result, false);
  1570. }
  1571. inline _variant_t IMSMQQueue3::GetHandle2 ( ) {
  1572. VARIANT _result;
  1573. VariantInit(&_result);
  1574. HRESULT _hr = get_Handle2(&_result);
  1575. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1576. return _variant_t(_result, false);
  1577. }
  1578. inline IMSMQMessage3Ptr IMSMQQueue3::ReceiveByLookupId ( const _variant_t & LookupId, VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1579. struct IMSMQMessage3 * _result;
  1580. HRESULT _hr = raw_ReceiveByLookupId(LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1581. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1582. return IMSMQMessage3Ptr(_result, false);
  1583. }
  1584. inline IMSMQMessage3Ptr IMSMQQueue3::ReceiveNextByLookupId ( const _variant_t & LookupId, VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1585. struct IMSMQMessage3 * _result;
  1586. HRESULT _hr = raw_ReceiveNextByLookupId(LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1587. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1588. return IMSMQMessage3Ptr(_result, false);
  1589. }
  1590. inline IMSMQMessage3Ptr IMSMQQueue3::ReceivePreviousByLookupId ( const _variant_t & LookupId, VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1591. struct IMSMQMessage3 * _result;
  1592. HRESULT _hr = raw_ReceivePreviousByLookupId(LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1593. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1594. return IMSMQMessage3Ptr(_result, false);
  1595. }
  1596. inline IMSMQMessage3Ptr IMSMQQueue3::ReceiveFirstByLookupId ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1597. struct IMSMQMessage3 * _result;
  1598. HRESULT _hr = raw_ReceiveFirstByLookupId(Transaction, WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1599. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1600. return IMSMQMessage3Ptr(_result, false);
  1601. }
  1602. inline IMSMQMessage3Ptr IMSMQQueue3::ReceiveLastByLookupId ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1603. struct IMSMQMessage3 * _result;
  1604. HRESULT _hr = raw_ReceiveLastByLookupId(Transaction, WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1605. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1606. return IMSMQMessage3Ptr(_result, false);
  1607. }
  1608. inline IMSMQMessage3Ptr IMSMQQueue3::PeekByLookupId ( const _variant_t & LookupId, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1609. struct IMSMQMessage3 * _result;
  1610. HRESULT _hr = raw_PeekByLookupId(LookupId, WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1611. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1612. return IMSMQMessage3Ptr(_result, false);
  1613. }
  1614. inline IMSMQMessage3Ptr IMSMQQueue3::PeekNextByLookupId ( const _variant_t & LookupId, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1615. struct IMSMQMessage3 * _result;
  1616. HRESULT _hr = raw_PeekNextByLookupId(LookupId, WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1617. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1618. return IMSMQMessage3Ptr(_result, false);
  1619. }
  1620. inline IMSMQMessage3Ptr IMSMQQueue3::PeekPreviousByLookupId ( const _variant_t & LookupId, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1621. struct IMSMQMessage3 * _result;
  1622. HRESULT _hr = raw_PeekPreviousByLookupId(LookupId, WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1623. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1624. return IMSMQMessage3Ptr(_result, false);
  1625. }
  1626. inline IMSMQMessage3Ptr IMSMQQueue3::PeekFirstByLookupId ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1627. struct IMSMQMessage3 * _result;
  1628. HRESULT _hr = raw_PeekFirstByLookupId(WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1629. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1630. return IMSMQMessage3Ptr(_result, false);
  1631. }
  1632. inline IMSMQMessage3Ptr IMSMQQueue3::PeekLastByLookupId ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * WantConnectorType ) {
  1633. struct IMSMQMessage3 * _result;
  1634. HRESULT _hr = raw_PeekLastByLookupId(WantDestinationQueue, WantBody, WantConnectorType, &_result);
  1635. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1636. return IMSMQMessage3Ptr(_result, false);
  1637. }
  1638. inline HRESULT IMSMQQueue3::Purge ( ) {
  1639. HRESULT _hr = raw_Purge();
  1640. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1641. return _hr;
  1642. }
  1643. inline VARIANT_BOOL IMSMQQueue3::GetIsOpen2 ( ) {
  1644. VARIANT_BOOL _result;
  1645. HRESULT _hr = get_IsOpen2(&_result);
  1646. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1647. return _result;
  1648. }
  1649. //
  1650. // interface IMSMQMessage3 wrapper method implementations
  1651. //
  1652. inline long IMSMQMessage3::GetClass ( ) {
  1653. long _result;
  1654. HRESULT _hr = get_Class(&_result);
  1655. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1656. return _result;
  1657. }
  1658. inline long IMSMQMessage3::GetPrivLevel ( ) {
  1659. long _result;
  1660. HRESULT _hr = get_PrivLevel(&_result);
  1661. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1662. return _result;
  1663. }
  1664. inline void IMSMQMessage3::PutPrivLevel ( long plPrivLevel ) {
  1665. HRESULT _hr = put_PrivLevel(plPrivLevel);
  1666. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1667. }
  1668. inline long IMSMQMessage3::GetAuthLevel ( ) {
  1669. long _result;
  1670. HRESULT _hr = get_AuthLevel(&_result);
  1671. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1672. return _result;
  1673. }
  1674. inline void IMSMQMessage3::PutAuthLevel ( long plAuthLevel ) {
  1675. HRESULT _hr = put_AuthLevel(plAuthLevel);
  1676. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1677. }
  1678. inline short IMSMQMessage3::GetIsAuthenticated ( ) {
  1679. short _result;
  1680. HRESULT _hr = get_IsAuthenticated(&_result);
  1681. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1682. return _result;
  1683. }
  1684. inline long IMSMQMessage3::GetDelivery ( ) {
  1685. long _result;
  1686. HRESULT _hr = get_Delivery(&_result);
  1687. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1688. return _result;
  1689. }
  1690. inline void IMSMQMessage3::PutDelivery ( long plDelivery ) {
  1691. HRESULT _hr = put_Delivery(plDelivery);
  1692. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1693. }
  1694. inline long IMSMQMessage3::GetTrace ( ) {
  1695. long _result;
  1696. HRESULT _hr = get_Trace(&_result);
  1697. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1698. return _result;
  1699. }
  1700. inline void IMSMQMessage3::PutTrace ( long plTrace ) {
  1701. HRESULT _hr = put_Trace(plTrace);
  1702. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1703. }
  1704. inline long IMSMQMessage3::GetPriority ( ) {
  1705. long _result;
  1706. HRESULT _hr = get_Priority(&_result);
  1707. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1708. return _result;
  1709. }
  1710. inline void IMSMQMessage3::PutPriority ( long plPriority ) {
  1711. HRESULT _hr = put_Priority(plPriority);
  1712. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1713. }
  1714. inline long IMSMQMessage3::GetJournal ( ) {
  1715. long _result;
  1716. HRESULT _hr = get_Journal(&_result);
  1717. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1718. return _result;
  1719. }
  1720. inline void IMSMQMessage3::PutJournal ( long plJournal ) {
  1721. HRESULT _hr = put_Journal(plJournal);
  1722. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1723. }
  1724. inline IMSMQQueueInfoPtr IMSMQMessage3::GetResponseQueueInfo_v1 ( ) {
  1725. struct IMSMQQueueInfo * _result;
  1726. HRESULT _hr = get_ResponseQueueInfo_v1(&_result);
  1727. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1728. return IMSMQQueueInfoPtr(_result, false);
  1729. }
  1730. inline void IMSMQMessage3::PutRefResponseQueueInfo_v1 ( struct IMSMQQueueInfo * ppqinfoResponse ) {
  1731. HRESULT _hr = putref_ResponseQueueInfo_v1(ppqinfoResponse);
  1732. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1733. }
  1734. inline long IMSMQMessage3::GetAppSpecific ( ) {
  1735. long _result;
  1736. HRESULT _hr = get_AppSpecific(&_result);
  1737. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1738. return _result;
  1739. }
  1740. inline void IMSMQMessage3::PutAppSpecific ( long plAppSpecific ) {
  1741. HRESULT _hr = put_AppSpecific(plAppSpecific);
  1742. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1743. }
  1744. inline _bstr_t IMSMQMessage3::GetSourceMachineGuid ( ) {
  1745. BSTR _result;
  1746. HRESULT _hr = get_SourceMachineGuid(&_result);
  1747. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1748. return _bstr_t(_result, false);
  1749. }
  1750. inline long IMSMQMessage3::GetBodyLength ( ) {
  1751. long _result;
  1752. HRESULT _hr = get_BodyLength(&_result);
  1753. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1754. return _result;
  1755. }
  1756. inline _variant_t IMSMQMessage3::GetBody ( ) {
  1757. VARIANT _result;
  1758. VariantInit(&_result);
  1759. HRESULT _hr = get_Body(&_result);
  1760. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1761. return _variant_t(_result, false);
  1762. }
  1763. inline void IMSMQMessage3::PutBody ( const _variant_t & pvarBody ) {
  1764. HRESULT _hr = put_Body(pvarBody);
  1765. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1766. }
  1767. inline IMSMQQueueInfoPtr IMSMQMessage3::GetAdminQueueInfo_v1 ( ) {
  1768. struct IMSMQQueueInfo * _result;
  1769. HRESULT _hr = get_AdminQueueInfo_v1(&_result);
  1770. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1771. return IMSMQQueueInfoPtr(_result, false);
  1772. }
  1773. inline void IMSMQMessage3::PutRefAdminQueueInfo_v1 ( struct IMSMQQueueInfo * ppqinfoAdmin ) {
  1774. HRESULT _hr = putref_AdminQueueInfo_v1(ppqinfoAdmin);
  1775. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1776. }
  1777. inline _variant_t IMSMQMessage3::GetId ( ) {
  1778. VARIANT _result;
  1779. VariantInit(&_result);
  1780. HRESULT _hr = get_Id(&_result);
  1781. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1782. return _variant_t(_result, false);
  1783. }
  1784. inline _variant_t IMSMQMessage3::GetCorrelationId ( ) {
  1785. VARIANT _result;
  1786. VariantInit(&_result);
  1787. HRESULT _hr = get_CorrelationId(&_result);
  1788. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1789. return _variant_t(_result, false);
  1790. }
  1791. inline void IMSMQMessage3::PutCorrelationId ( const _variant_t & pvarMsgId ) {
  1792. HRESULT _hr = put_CorrelationId(pvarMsgId);
  1793. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1794. }
  1795. inline long IMSMQMessage3::GetAck ( ) {
  1796. long _result;
  1797. HRESULT _hr = get_Ack(&_result);
  1798. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1799. return _result;
  1800. }
  1801. inline void IMSMQMessage3::PutAck ( long plAck ) {
  1802. HRESULT _hr = put_Ack(plAck);
  1803. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1804. }
  1805. inline _bstr_t IMSMQMessage3::GetLabel ( ) {
  1806. BSTR _result;
  1807. HRESULT _hr = get_Label(&_result);
  1808. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1809. return _bstr_t(_result, false);
  1810. }
  1811. inline void IMSMQMessage3::PutLabel ( _bstr_t pbstrLabel ) {
  1812. HRESULT _hr = put_Label(pbstrLabel);
  1813. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1814. }
  1815. inline long IMSMQMessage3::GetMaxTimeToReachQueue ( ) {
  1816. long _result;
  1817. HRESULT _hr = get_MaxTimeToReachQueue(&_result);
  1818. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1819. return _result;
  1820. }
  1821. inline void IMSMQMessage3::PutMaxTimeToReachQueue ( long plMaxTimeToReachQueue ) {
  1822. HRESULT _hr = put_MaxTimeToReachQueue(plMaxTimeToReachQueue);
  1823. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1824. }
  1825. inline long IMSMQMessage3::GetMaxTimeToReceive ( ) {
  1826. long _result;
  1827. HRESULT _hr = get_MaxTimeToReceive(&_result);
  1828. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1829. return _result;
  1830. }
  1831. inline void IMSMQMessage3::PutMaxTimeToReceive ( long plMaxTimeToReceive ) {
  1832. HRESULT _hr = put_MaxTimeToReceive(plMaxTimeToReceive);
  1833. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1834. }
  1835. inline long IMSMQMessage3::GetHashAlgorithm ( ) {
  1836. long _result;
  1837. HRESULT _hr = get_HashAlgorithm(&_result);
  1838. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1839. return _result;
  1840. }
  1841. inline void IMSMQMessage3::PutHashAlgorithm ( long plHashAlg ) {
  1842. HRESULT _hr = put_HashAlgorithm(plHashAlg);
  1843. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1844. }
  1845. inline long IMSMQMessage3::GetEncryptAlgorithm ( ) {
  1846. long _result;
  1847. HRESULT _hr = get_EncryptAlgorithm(&_result);
  1848. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1849. return _result;
  1850. }
  1851. inline void IMSMQMessage3::PutEncryptAlgorithm ( long plEncryptAlg ) {
  1852. HRESULT _hr = put_EncryptAlgorithm(plEncryptAlg);
  1853. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1854. }
  1855. inline _variant_t IMSMQMessage3::GetSentTime ( ) {
  1856. VARIANT _result;
  1857. VariantInit(&_result);
  1858. HRESULT _hr = get_SentTime(&_result);
  1859. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1860. return _variant_t(_result, false);
  1861. }
  1862. inline _variant_t IMSMQMessage3::GetArrivedTime ( ) {
  1863. VARIANT _result;
  1864. VariantInit(&_result);
  1865. HRESULT _hr = get_ArrivedTime(&_result);
  1866. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1867. return _variant_t(_result, false);
  1868. }
  1869. inline IMSMQQueueInfo3Ptr IMSMQMessage3::GetDestinationQueueInfo ( ) {
  1870. struct IMSMQQueueInfo3 * _result;
  1871. HRESULT _hr = get_DestinationQueueInfo(&_result);
  1872. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1873. return IMSMQQueueInfo3Ptr(_result, false);
  1874. }
  1875. inline _variant_t IMSMQMessage3::GetSenderCertificate ( ) {
  1876. VARIANT _result;
  1877. VariantInit(&_result);
  1878. HRESULT _hr = get_SenderCertificate(&_result);
  1879. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1880. return _variant_t(_result, false);
  1881. }
  1882. inline void IMSMQMessage3::PutSenderCertificate ( const _variant_t & pvarSenderCert ) {
  1883. HRESULT _hr = put_SenderCertificate(pvarSenderCert);
  1884. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1885. }
  1886. inline _variant_t IMSMQMessage3::GetSenderId ( ) {
  1887. VARIANT _result;
  1888. VariantInit(&_result);
  1889. HRESULT _hr = get_SenderId(&_result);
  1890. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1891. return _variant_t(_result, false);
  1892. }
  1893. inline long IMSMQMessage3::GetSenderIdType ( ) {
  1894. long _result;
  1895. HRESULT _hr = get_SenderIdType(&_result);
  1896. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1897. return _result;
  1898. }
  1899. inline void IMSMQMessage3::PutSenderIdType ( long plSenderIdType ) {
  1900. HRESULT _hr = put_SenderIdType(plSenderIdType);
  1901. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1902. }
  1903. inline HRESULT IMSMQMessage3::Send ( IDispatch * DestinationQueue, VARIANT * Transaction ) {
  1904. HRESULT _hr = raw_Send(DestinationQueue, Transaction);
  1905. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1906. return _hr;
  1907. }
  1908. inline HRESULT IMSMQMessage3::AttachCurrentSecurityContext ( ) {
  1909. HRESULT _hr = raw_AttachCurrentSecurityContext();
  1910. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1911. return _hr;
  1912. }
  1913. inline long IMSMQMessage3::GetSenderVersion ( ) {
  1914. long _result;
  1915. HRESULT _hr = get_SenderVersion(&_result);
  1916. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1917. return _result;
  1918. }
  1919. inline _variant_t IMSMQMessage3::GetExtension ( ) {
  1920. VARIANT _result;
  1921. VariantInit(&_result);
  1922. HRESULT _hr = get_Extension(&_result);
  1923. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1924. return _variant_t(_result, false);
  1925. }
  1926. inline void IMSMQMessage3::PutExtension ( const _variant_t & pvarExtension ) {
  1927. HRESULT _hr = put_Extension(pvarExtension);
  1928. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1929. }
  1930. inline _bstr_t IMSMQMessage3::GetConnectorTypeGuid ( ) {
  1931. BSTR _result;
  1932. HRESULT _hr = get_ConnectorTypeGuid(&_result);
  1933. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1934. return _bstr_t(_result, false);
  1935. }
  1936. inline void IMSMQMessage3::PutConnectorTypeGuid ( _bstr_t pbstrGuidConnectorType ) {
  1937. HRESULT _hr = put_ConnectorTypeGuid(pbstrGuidConnectorType);
  1938. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1939. }
  1940. inline IMSMQQueueInfo3Ptr IMSMQMessage3::GetTransactionStatusQueueInfo ( ) {
  1941. struct IMSMQQueueInfo3 * _result;
  1942. HRESULT _hr = get_TransactionStatusQueueInfo(&_result);
  1943. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1944. return IMSMQQueueInfo3Ptr(_result, false);
  1945. }
  1946. inline _variant_t IMSMQMessage3::GetDestinationSymmetricKey ( ) {
  1947. VARIANT _result;
  1948. VariantInit(&_result);
  1949. HRESULT _hr = get_DestinationSymmetricKey(&_result);
  1950. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1951. return _variant_t(_result, false);
  1952. }
  1953. inline void IMSMQMessage3::PutDestinationSymmetricKey ( const _variant_t & pvarDestSymmKey ) {
  1954. HRESULT _hr = put_DestinationSymmetricKey(pvarDestSymmKey);
  1955. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1956. }
  1957. inline _variant_t IMSMQMessage3::GetSignature ( ) {
  1958. VARIANT _result;
  1959. VariantInit(&_result);
  1960. HRESULT _hr = get_Signature(&_result);
  1961. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1962. return _variant_t(_result, false);
  1963. }
  1964. inline void IMSMQMessage3::PutSignature ( const _variant_t & pvarSignature ) {
  1965. HRESULT _hr = put_Signature(pvarSignature);
  1966. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1967. }
  1968. inline long IMSMQMessage3::GetAuthenticationProviderType ( ) {
  1969. long _result;
  1970. HRESULT _hr = get_AuthenticationProviderType(&_result);
  1971. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1972. return _result;
  1973. }
  1974. inline void IMSMQMessage3::PutAuthenticationProviderType ( long plAuthProvType ) {
  1975. HRESULT _hr = put_AuthenticationProviderType(plAuthProvType);
  1976. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1977. }
  1978. inline _bstr_t IMSMQMessage3::GetAuthenticationProviderName ( ) {
  1979. BSTR _result;
  1980. HRESULT _hr = get_AuthenticationProviderName(&_result);
  1981. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1982. return _bstr_t(_result, false);
  1983. }
  1984. inline void IMSMQMessage3::PutAuthenticationProviderName ( _bstr_t pbstrAuthProvName ) {
  1985. HRESULT _hr = put_AuthenticationProviderName(pbstrAuthProvName);
  1986. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1987. }
  1988. inline void IMSMQMessage3::PutSenderId ( const _variant_t & pvarSenderId ) {
  1989. HRESULT _hr = put_SenderId(pvarSenderId);
  1990. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1991. }
  1992. inline long IMSMQMessage3::GetMsgClass ( ) {
  1993. long _result;
  1994. HRESULT _hr = get_MsgClass(&_result);
  1995. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1996. return _result;
  1997. }
  1998. inline void IMSMQMessage3::PutMsgClass ( long plMsgClass ) {
  1999. HRESULT _hr = put_MsgClass(plMsgClass);
  2000. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2001. }
  2002. inline IDispatchPtr IMSMQMessage3::GetProperties ( ) {
  2003. IDispatch * _result;
  2004. HRESULT _hr = get_Properties(&_result);
  2005. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2006. return IDispatchPtr(_result, false);
  2007. }
  2008. inline _variant_t IMSMQMessage3::GetTransactionId ( ) {
  2009. VARIANT _result;
  2010. VariantInit(&_result);
  2011. HRESULT _hr = get_TransactionId(&_result);
  2012. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2013. return _variant_t(_result, false);
  2014. }
  2015. inline short IMSMQMessage3::GetIsFirstInTransaction ( ) {
  2016. short _result;
  2017. HRESULT _hr = get_IsFirstInTransaction(&_result);
  2018. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2019. return _result;
  2020. }
  2021. inline short IMSMQMessage3::GetIsLastInTransaction ( ) {
  2022. short _result;
  2023. HRESULT _hr = get_IsLastInTransaction(&_result);
  2024. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2025. return _result;
  2026. }
  2027. inline IMSMQQueueInfo2Ptr IMSMQMessage3::GetResponseQueueInfo_v2 ( ) {
  2028. struct IMSMQQueueInfo2 * _result;
  2029. HRESULT _hr = get_ResponseQueueInfo_v2(&_result);
  2030. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2031. return IMSMQQueueInfo2Ptr(_result, false);
  2032. }
  2033. inline void IMSMQMessage3::PutRefResponseQueueInfo_v2 ( struct IMSMQQueueInfo2 * ppqinfoResponse ) {
  2034. HRESULT _hr = putref_ResponseQueueInfo_v2(ppqinfoResponse);
  2035. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2036. }
  2037. inline IMSMQQueueInfo2Ptr IMSMQMessage3::GetAdminQueueInfo_v2 ( ) {
  2038. struct IMSMQQueueInfo2 * _result;
  2039. HRESULT _hr = get_AdminQueueInfo_v2(&_result);
  2040. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2041. return IMSMQQueueInfo2Ptr(_result, false);
  2042. }
  2043. inline void IMSMQMessage3::PutRefAdminQueueInfo_v2 ( struct IMSMQQueueInfo2 * ppqinfoAdmin ) {
  2044. HRESULT _hr = putref_AdminQueueInfo_v2(ppqinfoAdmin);
  2045. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2046. }
  2047. inline short IMSMQMessage3::GetReceivedAuthenticationLevel ( ) {
  2048. short _result;
  2049. HRESULT _hr = get_ReceivedAuthenticationLevel(&_result);
  2050. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2051. return _result;
  2052. }
  2053. inline IMSMQQueueInfo3Ptr IMSMQMessage3::GetResponseQueueInfo ( ) {
  2054. struct IMSMQQueueInfo3 * _result;
  2055. HRESULT _hr = get_ResponseQueueInfo(&_result);
  2056. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2057. return IMSMQQueueInfo3Ptr(_result, false);
  2058. }
  2059. inline void IMSMQMessage3::PutRefResponseQueueInfo ( struct IMSMQQueueInfo3 * ppqinfoResponse ) {
  2060. HRESULT _hr = putref_ResponseQueueInfo(ppqinfoResponse);
  2061. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2062. }
  2063. inline IMSMQQueueInfo3Ptr IMSMQMessage3::GetAdminQueueInfo ( ) {
  2064. struct IMSMQQueueInfo3 * _result;
  2065. HRESULT _hr = get_AdminQueueInfo(&_result);
  2066. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2067. return IMSMQQueueInfo3Ptr(_result, false);
  2068. }
  2069. inline void IMSMQMessage3::PutRefAdminQueueInfo ( struct IMSMQQueueInfo3 * ppqinfoAdmin ) {
  2070. HRESULT _hr = putref_AdminQueueInfo(ppqinfoAdmin);
  2071. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2072. }
  2073. inline IDispatchPtr IMSMQMessage3::GetResponseDestination ( ) {
  2074. IDispatch * _result;
  2075. HRESULT _hr = get_ResponseDestination(&_result);
  2076. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2077. return IDispatchPtr(_result, false);
  2078. }
  2079. inline void IMSMQMessage3::PutRefResponseDestination ( IDispatch * ppdestResponse ) {
  2080. HRESULT _hr = putref_ResponseDestination(ppdestResponse);
  2081. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2082. }
  2083. inline IDispatchPtr IMSMQMessage3::GetDestination ( ) {
  2084. IDispatch * _result;
  2085. HRESULT _hr = get_Destination(&_result);
  2086. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2087. return IDispatchPtr(_result, false);
  2088. }
  2089. inline _variant_t IMSMQMessage3::GetLookupId ( ) {
  2090. VARIANT _result;
  2091. VariantInit(&_result);
  2092. HRESULT _hr = get_LookupId(&_result);
  2093. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2094. return _variant_t(_result, false);
  2095. }
  2096. inline VARIANT_BOOL IMSMQMessage3::GetIsAuthenticated2 ( ) {
  2097. VARIANT_BOOL _result;
  2098. HRESULT _hr = get_IsAuthenticated2(&_result);
  2099. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2100. return _result;
  2101. }
  2102. inline VARIANT_BOOL IMSMQMessage3::GetIsFirstInTransaction2 ( ) {
  2103. VARIANT_BOOL _result;
  2104. HRESULT _hr = get_IsFirstInTransaction2(&_result);
  2105. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2106. return _result;
  2107. }
  2108. inline VARIANT_BOOL IMSMQMessage3::GetIsLastInTransaction2 ( ) {
  2109. VARIANT_BOOL _result;
  2110. HRESULT _hr = get_IsLastInTransaction2(&_result);
  2111. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2112. return _result;
  2113. }
  2114. inline HRESULT IMSMQMessage3::AttachCurrentSecurityContext2 ( ) {
  2115. HRESULT _hr = raw_AttachCurrentSecurityContext2();
  2116. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2117. return _hr;
  2118. }
  2119. inline _bstr_t IMSMQMessage3::GetSoapEnvelope ( ) {
  2120. BSTR _result;
  2121. HRESULT _hr = get_SoapEnvelope(&_result);
  2122. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2123. return _bstr_t(_result, false);
  2124. }
  2125. inline _variant_t IMSMQMessage3::GetCompoundMessage ( ) {
  2126. VARIANT _result;
  2127. VariantInit(&_result);
  2128. HRESULT _hr = get_CompoundMessage(&_result);
  2129. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2130. return _variant_t(_result, false);
  2131. }
  2132. inline void IMSMQMessage3::PutSoapHeader ( _bstr_t _arg1 ) {
  2133. HRESULT _hr = put_SoapHeader(_arg1);
  2134. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2135. }
  2136. inline void IMSMQMessage3::PutSoapBody ( _bstr_t _arg1 ) {
  2137. HRESULT _hr = put_SoapBody(_arg1);
  2138. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2139. }
  2140. //
  2141. // interface IMSMQQueueInfos2 wrapper method implementations
  2142. //
  2143. inline HRESULT IMSMQQueueInfos2::Reset ( ) {
  2144. HRESULT _hr = raw_Reset();
  2145. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2146. return _hr;
  2147. }
  2148. inline IMSMQQueueInfo2Ptr IMSMQQueueInfos2::Next ( ) {
  2149. struct IMSMQQueueInfo2 * _result;
  2150. HRESULT _hr = raw_Next(&_result);
  2151. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2152. return IMSMQQueueInfo2Ptr(_result, false);
  2153. }
  2154. inline IDispatchPtr IMSMQQueueInfos2::GetProperties ( ) {
  2155. IDispatch * _result;
  2156. HRESULT _hr = get_Properties(&_result);
  2157. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2158. return IDispatchPtr(_result, false);
  2159. }
  2160. //
  2161. // interface IMSMQQueueInfos3 wrapper method implementations
  2162. //
  2163. inline HRESULT IMSMQQueueInfos3::Reset ( ) {
  2164. HRESULT _hr = raw_Reset();
  2165. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2166. return _hr;
  2167. }
  2168. inline IMSMQQueueInfo3Ptr IMSMQQueueInfos3::Next ( ) {
  2169. struct IMSMQQueueInfo3 * _result;
  2170. HRESULT _hr = raw_Next(&_result);
  2171. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2172. return IMSMQQueueInfo3Ptr(_result, false);
  2173. }
  2174. inline IDispatchPtr IMSMQQueueInfos3::GetProperties ( ) {
  2175. IDispatch * _result;
  2176. HRESULT _hr = get_Properties(&_result);
  2177. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2178. return IDispatchPtr(_result, false);
  2179. }
  2180. //
  2181. // interface IMSMQTransaction wrapper method implementations
  2182. //
  2183. inline long IMSMQTransaction::GetTransaction ( ) {
  2184. long _result;
  2185. HRESULT _hr = get_Transaction(&_result);
  2186. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2187. return _result;
  2188. }
  2189. inline HRESULT IMSMQTransaction::Commit ( VARIANT * fRetaining, VARIANT * grfTC, VARIANT * grfRM ) {
  2190. HRESULT _hr = raw_Commit(fRetaining, grfTC, grfRM);
  2191. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2192. return _hr;
  2193. }
  2194. inline HRESULT IMSMQTransaction::Abort ( VARIANT * fRetaining, VARIANT * fAsync ) {
  2195. HRESULT _hr = raw_Abort(fRetaining, fAsync);
  2196. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2197. return _hr;
  2198. }
  2199. //
  2200. // interface IMSMQCoordinatedTransactionDispenser wrapper method implementations
  2201. //
  2202. inline IMSMQTransactionPtr IMSMQCoordinatedTransactionDispenser::BeginTransaction ( ) {
  2203. struct IMSMQTransaction * _result;
  2204. HRESULT _hr = raw_BeginTransaction(&_result);
  2205. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2206. return IMSMQTransactionPtr(_result, false);
  2207. }
  2208. //
  2209. // interface IMSMQTransactionDispenser wrapper method implementations
  2210. //
  2211. inline IMSMQTransactionPtr IMSMQTransactionDispenser::BeginTransaction ( ) {
  2212. struct IMSMQTransaction * _result;
  2213. HRESULT _hr = raw_BeginTransaction(&_result);
  2214. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2215. return IMSMQTransactionPtr(_result, false);
  2216. }
  2217. //
  2218. // interface IMSMQQuery2 wrapper method implementations
  2219. //
  2220. inline IMSMQQueueInfos2Ptr IMSMQQuery2::LookupQueue ( VARIANT * QueueGuid, VARIANT * ServiceTypeGuid, VARIANT * Label, VARIANT * CreateTime, VARIANT * ModifyTime, VARIANT * RelServiceType, VARIANT * RelLabel, VARIANT * RelCreateTime, VARIANT * RelModifyTime ) {
  2221. struct IMSMQQueueInfos2 * _result;
  2222. HRESULT _hr = raw_LookupQueue(QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, &_result);
  2223. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2224. return IMSMQQueueInfos2Ptr(_result, false);
  2225. }
  2226. inline IDispatchPtr IMSMQQuery2::GetProperties ( ) {
  2227. IDispatch * _result;
  2228. HRESULT _hr = get_Properties(&_result);
  2229. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2230. return IDispatchPtr(_result, false);
  2231. }
  2232. //
  2233. // interface IMSMQQuery3 wrapper method implementations
  2234. //
  2235. inline IMSMQQueueInfos3Ptr IMSMQQuery3::LookupQueue_v2 ( VARIANT * QueueGuid, VARIANT * ServiceTypeGuid, VARIANT * Label, VARIANT * CreateTime, VARIANT * ModifyTime, VARIANT * RelServiceType, VARIANT * RelLabel, VARIANT * RelCreateTime, VARIANT * RelModifyTime ) {
  2236. struct IMSMQQueueInfos3 * _result;
  2237. HRESULT _hr = raw_LookupQueue_v2(QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, &_result);
  2238. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2239. return IMSMQQueueInfos3Ptr(_result, false);
  2240. }
  2241. inline IDispatchPtr IMSMQQuery3::GetProperties ( ) {
  2242. IDispatch * _result;
  2243. HRESULT _hr = get_Properties(&_result);
  2244. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2245. return IDispatchPtr(_result, false);
  2246. }
  2247. inline IMSMQQueueInfos3Ptr IMSMQQuery3::LookupQueue ( VARIANT * QueueGuid, VARIANT * ServiceTypeGuid, VARIANT * Label, VARIANT * CreateTime, VARIANT * ModifyTime, VARIANT * RelServiceType, VARIANT * RelLabel, VARIANT * RelCreateTime, VARIANT * RelModifyTime, VARIANT * MulticastAddress, VARIANT * RelMulticastAddress ) {
  2248. struct IMSMQQueueInfos3 * _result;
  2249. HRESULT _hr = raw_LookupQueue(QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, MulticastAddress, RelMulticastAddress, &_result);
  2250. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2251. return IMSMQQueueInfos3Ptr(_result, false);
  2252. }
  2253. //
  2254. // interface IMSMQPrivateEvent wrapper method implementations
  2255. //
  2256. inline long IMSMQPrivateEvent::GetHwnd ( ) {
  2257. long _result;
  2258. HRESULT _hr = get_Hwnd(&_result);
  2259. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2260. return _result;
  2261. }
  2262. inline HRESULT IMSMQPrivateEvent::FireArrivedEvent ( struct IMSMQQueue * pq, long msgcursor ) {
  2263. HRESULT _hr = raw_FireArrivedEvent(pq, msgcursor);
  2264. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2265. return _hr;
  2266. }
  2267. inline HRESULT IMSMQPrivateEvent::FireArrivedErrorEvent ( struct IMSMQQueue * pq, HRESULT hrStatus, long msgcursor ) {
  2268. HRESULT _hr = raw_FireArrivedErrorEvent(pq, hrStatus, msgcursor);
  2269. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2270. return _hr;
  2271. }
  2272. //
  2273. // dispinterface _DMSMQEventEvents wrapper method implementations
  2274. //
  2275. inline HRESULT _DMSMQEventEvents::Arrived ( IDispatch * Queue, long Cursor ) {
  2276. return _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_EMPTY, NULL,
  2277. L"\x0009\x0003", Queue, Cursor);
  2278. }
  2279. inline HRESULT _DMSMQEventEvents::ArrivedError ( IDispatch * Queue, long ErrorCode, long Cursor ) {
  2280. return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL,
  2281. L"\x0009\x0003\x0003", Queue, ErrorCode, Cursor);
  2282. }
  2283. //
  2284. // interface IMSMQTransaction2 wrapper method implementations
  2285. //
  2286. inline HRESULT IMSMQTransaction2::InitNew ( const _variant_t & varTransaction ) {
  2287. HRESULT _hr = raw_InitNew(varTransaction);
  2288. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2289. return _hr;
  2290. }
  2291. inline IDispatchPtr IMSMQTransaction2::GetProperties ( ) {
  2292. IDispatch * _result;
  2293. HRESULT _hr = get_Properties(&_result);
  2294. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2295. return IDispatchPtr(_result, false);
  2296. }
  2297. //
  2298. // interface IMSMQTransaction3 wrapper method implementations
  2299. //
  2300. inline _variant_t IMSMQTransaction3::GetITransaction ( ) {
  2301. VARIANT _result;
  2302. VariantInit(&_result);
  2303. HRESULT _hr = get_ITransaction(&_result);
  2304. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2305. return _variant_t(_result, false);
  2306. }
  2307. //
  2308. // interface IMSMQCoordinatedTransactionDispenser2 wrapper method implementations
  2309. //
  2310. inline IMSMQTransaction2Ptr IMSMQCoordinatedTransactionDispenser2::BeginTransaction ( ) {
  2311. struct IMSMQTransaction2 * _result;
  2312. HRESULT _hr = raw_BeginTransaction(&_result);
  2313. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2314. return IMSMQTransaction2Ptr(_result, false);
  2315. }
  2316. inline IDispatchPtr IMSMQCoordinatedTransactionDispenser2::GetProperties ( ) {
  2317. IDispatch * _result;
  2318. HRESULT _hr = get_Properties(&_result);
  2319. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2320. return IDispatchPtr(_result, false);
  2321. }
  2322. //
  2323. // interface IMSMQCoordinatedTransactionDispenser3 wrapper method implementations
  2324. //
  2325. inline IMSMQTransaction3Ptr IMSMQCoordinatedTransactionDispenser3::BeginTransaction ( ) {
  2326. struct IMSMQTransaction3 * _result;
  2327. HRESULT _hr = raw_BeginTransaction(&_result);
  2328. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2329. return IMSMQTransaction3Ptr(_result, false);
  2330. }
  2331. inline IDispatchPtr IMSMQCoordinatedTransactionDispenser3::GetProperties ( ) {
  2332. IDispatch * _result;
  2333. HRESULT _hr = get_Properties(&_result);
  2334. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2335. return IDispatchPtr(_result, false);
  2336. }
  2337. //
  2338. // interface IMSMQTransactionDispenser2 wrapper method implementations
  2339. //
  2340. inline IMSMQTransaction2Ptr IMSMQTransactionDispenser2::BeginTransaction ( ) {
  2341. struct IMSMQTransaction2 * _result;
  2342. HRESULT _hr = raw_BeginTransaction(&_result);
  2343. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2344. return IMSMQTransaction2Ptr(_result, false);
  2345. }
  2346. inline IDispatchPtr IMSMQTransactionDispenser2::GetProperties ( ) {
  2347. IDispatch * _result;
  2348. HRESULT _hr = get_Properties(&_result);
  2349. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2350. return IDispatchPtr(_result, false);
  2351. }
  2352. //
  2353. // interface IMSMQTransactionDispenser3 wrapper method implementations
  2354. //
  2355. inline IMSMQTransaction3Ptr IMSMQTransactionDispenser3::BeginTransaction ( ) {
  2356. struct IMSMQTransaction3 * _result;
  2357. HRESULT _hr = raw_BeginTransaction(&_result);
  2358. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2359. return IMSMQTransaction3Ptr(_result, false);
  2360. }
  2361. inline IDispatchPtr IMSMQTransactionDispenser3::GetProperties ( ) {
  2362. IDispatch * _result;
  2363. HRESULT _hr = get_Properties(&_result);
  2364. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2365. return IDispatchPtr(_result, false);
  2366. }
  2367. //
  2368. // interface IMSMQApplication wrapper method implementations
  2369. //
  2370. inline _bstr_t IMSMQApplication::MachineIdOfMachineName ( _bstr_t MachineName ) {
  2371. BSTR _result;
  2372. HRESULT _hr = raw_MachineIdOfMachineName(MachineName, &_result);
  2373. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2374. return _bstr_t(_result, false);
  2375. }
  2376. //
  2377. // interface IMSMQApplication2 wrapper method implementations
  2378. //
  2379. inline HRESULT IMSMQApplication2::RegisterCertificate ( VARIANT * Flags, VARIANT * ExternalCertificate ) {
  2380. HRESULT _hr = raw_RegisterCertificate(Flags, ExternalCertificate);
  2381. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2382. return _hr;
  2383. }
  2384. inline _bstr_t IMSMQApplication2::MachineNameOfMachineId ( _bstr_t bstrGuid ) {
  2385. BSTR _result;
  2386. HRESULT _hr = raw_MachineNameOfMachineId(bstrGuid, &_result);
  2387. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2388. return _bstr_t(_result, false);
  2389. }
  2390. inline short IMSMQApplication2::GetMSMQVersionMajor ( ) {
  2391. short _result;
  2392. HRESULT _hr = get_MSMQVersionMajor(&_result);
  2393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2394. return _result;
  2395. }
  2396. inline short IMSMQApplication2::GetMSMQVersionMinor ( ) {
  2397. short _result;
  2398. HRESULT _hr = get_MSMQVersionMinor(&_result);
  2399. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2400. return _result;
  2401. }
  2402. inline short IMSMQApplication2::GetMSMQVersionBuild ( ) {
  2403. short _result;
  2404. HRESULT _hr = get_MSMQVersionBuild(&_result);
  2405. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2406. return _result;
  2407. }
  2408. inline VARIANT_BOOL IMSMQApplication2::GetIsDsEnabled ( ) {
  2409. VARIANT_BOOL _result;
  2410. HRESULT _hr = get_IsDsEnabled(&_result);
  2411. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2412. return _result;
  2413. }
  2414. inline IDispatchPtr IMSMQApplication2::GetProperties ( ) {
  2415. IDispatch * _result;
  2416. HRESULT _hr = get_Properties(&_result);
  2417. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2418. return IDispatchPtr(_result, false);
  2419. }
  2420. //
  2421. // interface IMSMQApplication3 wrapper method implementations
  2422. //
  2423. inline _variant_t IMSMQApplication3::GetActiveQueues ( ) {
  2424. VARIANT _result;
  2425. VariantInit(&_result);
  2426. HRESULT _hr = get_ActiveQueues(&_result);
  2427. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2428. return _variant_t(_result, false);
  2429. }
  2430. inline _variant_t IMSMQApplication3::GetPrivateQueues ( ) {
  2431. VARIANT _result;
  2432. VariantInit(&_result);
  2433. HRESULT _hr = get_PrivateQueues(&_result);
  2434. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2435. return _variant_t(_result, false);
  2436. }
  2437. inline _bstr_t IMSMQApplication3::GetDirectoryServiceServer ( ) {
  2438. BSTR _result;
  2439. HRESULT _hr = get_DirectoryServiceServer(&_result);
  2440. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2441. return _bstr_t(_result, false);
  2442. }
  2443. inline VARIANT_BOOL IMSMQApplication3::GetIsConnected ( ) {
  2444. VARIANT_BOOL _result;
  2445. HRESULT _hr = get_IsConnected(&_result);
  2446. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2447. return _result;
  2448. }
  2449. inline _variant_t IMSMQApplication3::GetBytesInAllQueues ( ) {
  2450. VARIANT _result;
  2451. VariantInit(&_result);
  2452. HRESULT _hr = get_BytesInAllQueues(&_result);
  2453. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2454. return _variant_t(_result, false);
  2455. }
  2456. inline void IMSMQApplication3::PutMachine ( _bstr_t pbstrMachine ) {
  2457. HRESULT _hr = put_Machine(pbstrMachine);
  2458. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2459. }
  2460. inline _bstr_t IMSMQApplication3::GetMachine ( ) {
  2461. BSTR _result;
  2462. HRESULT _hr = get_Machine(&_result);
  2463. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2464. return _bstr_t(_result, false);
  2465. }
  2466. inline HRESULT IMSMQApplication3::Connect ( ) {
  2467. HRESULT _hr = raw_Connect();
  2468. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2469. return _hr;
  2470. }
  2471. inline HRESULT IMSMQApplication3::Disconnect ( ) {
  2472. HRESULT _hr = raw_Disconnect();
  2473. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2474. return _hr;
  2475. }
  2476. inline HRESULT IMSMQApplication3::Tidy ( ) {
  2477. HRESULT _hr = raw_Tidy();
  2478. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2479. return _hr;
  2480. }
  2481. //
  2482. // interface IMSMQDestination wrapper method implementations
  2483. //
  2484. inline HRESULT IMSMQDestination::Open ( ) {
  2485. HRESULT _hr = raw_Open();
  2486. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2487. return _hr;
  2488. }
  2489. inline HRESULT IMSMQDestination::Close ( ) {
  2490. HRESULT _hr = raw_Close();
  2491. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2492. return _hr;
  2493. }
  2494. inline VARIANT_BOOL IMSMQDestination::GetIsOpen ( ) {
  2495. VARIANT_BOOL _result;
  2496. HRESULT _hr = get_IsOpen(&_result);
  2497. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2498. return _result;
  2499. }
  2500. inline IDispatchPtr IMSMQDestination::GetIADs ( ) {
  2501. IDispatch * _result;
  2502. HRESULT _hr = get_IADs(&_result);
  2503. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2504. return IDispatchPtr(_result, false);
  2505. }
  2506. inline void IMSMQDestination::PutRefIADs ( IDispatch * ppIADs ) {
  2507. HRESULT _hr = putref_IADs(ppIADs);
  2508. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2509. }
  2510. inline _bstr_t IMSMQDestination::GetADsPath ( ) {
  2511. BSTR _result;
  2512. HRESULT _hr = get_ADsPath(&_result);
  2513. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2514. return _bstr_t(_result, false);
  2515. }
  2516. inline void IMSMQDestination::PutADsPath ( _bstr_t pbstrADsPath ) {
  2517. HRESULT _hr = put_ADsPath(pbstrADsPath);
  2518. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2519. }
  2520. inline _bstr_t IMSMQDestination::GetPathName ( ) {
  2521. BSTR _result;
  2522. HRESULT _hr = get_PathName(&_result);
  2523. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2524. return _bstr_t(_result, false);
  2525. }
  2526. inline void IMSMQDestination::PutPathName ( _bstr_t pbstrPathName ) {
  2527. HRESULT _hr = put_PathName(pbstrPathName);
  2528. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2529. }
  2530. inline _bstr_t IMSMQDestination::GetFormatName ( ) {
  2531. BSTR _result;
  2532. HRESULT _hr = get_FormatName(&_result);
  2533. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2534. return _bstr_t(_result, false);
  2535. }
  2536. inline void IMSMQDestination::PutFormatName ( _bstr_t pbstrFormatName ) {
  2537. HRESULT _hr = put_FormatName(pbstrFormatName);
  2538. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2539. }
  2540. inline IDispatchPtr IMSMQDestination::GetDestinations ( ) {
  2541. IDispatch * _result;
  2542. HRESULT _hr = get_Destinations(&_result);
  2543. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2544. return IDispatchPtr(_result, false);
  2545. }
  2546. inline void IMSMQDestination::PutRefDestinations ( IDispatch * ppDestinations ) {
  2547. HRESULT _hr = putref_Destinations(ppDestinations);
  2548. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2549. }
  2550. inline IDispatchPtr IMSMQDestination::GetProperties ( ) {
  2551. IDispatch * _result;
  2552. HRESULT _hr = get_Properties(&_result);
  2553. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2554. return IDispatchPtr(_result, false);
  2555. }
  2556. //
  2557. // interface IMSMQPrivateDestination wrapper method implementations
  2558. //
  2559. inline _variant_t IMSMQPrivateDestination::GetHandle ( ) {
  2560. VARIANT _result;
  2561. VariantInit(&_result);
  2562. HRESULT _hr = get_Handle(&_result);
  2563. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2564. return _variant_t(_result, false);
  2565. }
  2566. inline void IMSMQPrivateDestination::PutHandle ( const _variant_t & pvarHandle ) {
  2567. HRESULT _hr = put_Handle(pvarHandle);
  2568. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2569. }
  2570. //
  2571. // interface IMSMQCollection wrapper method implementations
  2572. //
  2573. inline _variant_t IMSMQCollection::Item ( VARIANT * Index ) {
  2574. VARIANT _result;
  2575. VariantInit(&_result);
  2576. HRESULT _hr = raw_Item(Index, &_result);
  2577. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2578. return _variant_t(_result, false);
  2579. }
  2580. inline long IMSMQCollection::GetCount ( ) {
  2581. long _result;
  2582. HRESULT _hr = get_Count(&_result);
  2583. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2584. return _result;
  2585. }
  2586. inline IUnknownPtr IMSMQCollection::_NewEnum ( ) {
  2587. IUnknown * _result;
  2588. HRESULT _hr = raw__NewEnum(&_result);
  2589. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2590. return IUnknownPtr(_result, false);
  2591. }
  2592. //
  2593. // interface IMSMQManagement wrapper method implementations
  2594. //
  2595. inline HRESULT IMSMQManagement::Init ( VARIANT * Machine, VARIANT * PathName, VARIANT * FormatName ) {
  2596. HRESULT _hr = raw_Init(Machine, PathName, FormatName);
  2597. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2598. return _hr;
  2599. }
  2600. inline _bstr_t IMSMQManagement::GetFormatName ( ) {
  2601. BSTR _result;
  2602. HRESULT _hr = get_FormatName(&_result);
  2603. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2604. return _bstr_t(_result, false);
  2605. }
  2606. inline _bstr_t IMSMQManagement::GetMachine ( ) {
  2607. BSTR _result;
  2608. HRESULT _hr = get_Machine(&_result);
  2609. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2610. return _bstr_t(_result, false);
  2611. }
  2612. inline long IMSMQManagement::GetMessageCount ( ) {
  2613. long _result;
  2614. HRESULT _hr = get_MessageCount(&_result);
  2615. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2616. return _result;
  2617. }
  2618. inline long IMSMQManagement::GetForeignStatus ( ) {
  2619. long _result;
  2620. HRESULT _hr = get_ForeignStatus(&_result);
  2621. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2622. return _result;
  2623. }
  2624. inline long IMSMQManagement::GetQueueType ( ) {
  2625. long _result;
  2626. HRESULT _hr = get_QueueType(&_result);
  2627. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2628. return _result;
  2629. }
  2630. inline VARIANT_BOOL IMSMQManagement::GetIsLocal ( ) {
  2631. VARIANT_BOOL _result;
  2632. HRESULT _hr = get_IsLocal(&_result);
  2633. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2634. return _result;
  2635. }
  2636. inline long IMSMQManagement::GetTransactionalStatus ( ) {
  2637. long _result;
  2638. HRESULT _hr = get_TransactionalStatus(&_result);
  2639. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2640. return _result;
  2641. }
  2642. inline _variant_t IMSMQManagement::GetBytesInQueue ( ) {
  2643. VARIANT _result;
  2644. VariantInit(&_result);
  2645. HRESULT _hr = get_BytesInQueue(&_result);
  2646. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2647. return _variant_t(_result, false);
  2648. }
  2649. //
  2650. // interface IMSMQOutgoingQueueManagement wrapper method implementations
  2651. //
  2652. inline long IMSMQOutgoingQueueManagement::GetState ( ) {
  2653. long _result;
  2654. HRESULT _hr = get_State(&_result);
  2655. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2656. return _result;
  2657. }
  2658. inline _variant_t IMSMQOutgoingQueueManagement::GetNextHops ( ) {
  2659. VARIANT _result;
  2660. VariantInit(&_result);
  2661. HRESULT _hr = get_NextHops(&_result);
  2662. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2663. return _variant_t(_result, false);
  2664. }
  2665. inline IMSMQCollectionPtr IMSMQOutgoingQueueManagement::EodGetSendInfo ( ) {
  2666. struct IMSMQCollection * _result;
  2667. HRESULT _hr = raw_EodGetSendInfo(&_result);
  2668. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2669. return IMSMQCollectionPtr(_result, false);
  2670. }
  2671. inline HRESULT IMSMQOutgoingQueueManagement::Resume ( ) {
  2672. HRESULT _hr = raw_Resume();
  2673. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2674. return _hr;
  2675. }
  2676. inline HRESULT IMSMQOutgoingQueueManagement::Pause ( ) {
  2677. HRESULT _hr = raw_Pause();
  2678. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2679. return _hr;
  2680. }
  2681. inline HRESULT IMSMQOutgoingQueueManagement::EodResend ( ) {
  2682. HRESULT _hr = raw_EodResend();
  2683. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2684. return _hr;
  2685. }
  2686. //
  2687. // interface IMSMQQueueManagement wrapper method implementations
  2688. //
  2689. inline long IMSMQQueueManagement::GetJournalMessageCount ( ) {
  2690. long _result;
  2691. HRESULT _hr = get_JournalMessageCount(&_result);
  2692. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2693. return _result;
  2694. }
  2695. inline _variant_t IMSMQQueueManagement::GetBytesInJournal ( ) {
  2696. VARIANT _result;
  2697. VariantInit(&_result);
  2698. HRESULT _hr = get_BytesInJournal(&_result);
  2699. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2700. return _variant_t(_result, false);
  2701. }
  2702. inline _variant_t IMSMQQueueManagement::EodGetReceiveInfo ( ) {
  2703. VARIANT _result;
  2704. VariantInit(&_result);
  2705. HRESULT _hr = raw_EodGetReceiveInfo(&_result);
  2706. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2707. return _variant_t(_result, false);
  2708. }