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.

1312 lines
43 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8472.0 (07da9fa9).
  2. //
  3. // c:\nt\admin\wmi\wbem\shell\atlui\wmicntl\snapin\obj\i386\sysmon.tli
  4. //
  5. // Wrapper implementations for Win32 type library d:\\winnt\\system32\\sysmon.ocx
  6. // compiler-generated file created 06/20/00 at 11:41:23 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface ICounterItem wrapper method implementations
  10. //
  11. inline double ICounterItem::GetValue ( ) {
  12. double _result;
  13. HRESULT _hr = get_Value(&_result);
  14. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  15. return _result;
  16. }
  17. inline void ICounterItem::PutColor ( OLE_COLOR pColor ) {
  18. HRESULT _hr = put_Color(pColor);
  19. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  20. }
  21. inline OLE_COLOR ICounterItem::GetColor ( ) {
  22. OLE_COLOR _result;
  23. HRESULT _hr = get_Color(&_result);
  24. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  25. return _result;
  26. }
  27. inline void ICounterItem::PutWidth ( int piValue ) {
  28. HRESULT _hr = put_Width(piValue);
  29. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  30. }
  31. inline int ICounterItem::GetWidth ( ) {
  32. int _result;
  33. HRESULT _hr = get_Width(&_result);
  34. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  35. return _result;
  36. }
  37. inline void ICounterItem::PutLineStyle ( int piValue ) {
  38. HRESULT _hr = put_LineStyle(piValue);
  39. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  40. }
  41. inline int ICounterItem::GetLineStyle ( ) {
  42. int _result;
  43. HRESULT _hr = get_LineStyle(&_result);
  44. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  45. return _result;
  46. }
  47. inline void ICounterItem::PutScaleFactor ( int piValue ) {
  48. HRESULT _hr = put_ScaleFactor(piValue);
  49. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  50. }
  51. inline int ICounterItem::GetScaleFactor ( ) {
  52. int _result;
  53. HRESULT _hr = get_ScaleFactor(&_result);
  54. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  55. return _result;
  56. }
  57. inline _bstr_t ICounterItem::GetPath ( ) {
  58. BSTR _result;
  59. HRESULT _hr = get_Path(&_result);
  60. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  61. return _bstr_t(_result, false);
  62. }
  63. inline HRESULT ICounterItem::GetValue ( double * Value, long * Status ) {
  64. HRESULT _hr = raw_GetValue(Value, Status);
  65. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  66. return _hr;
  67. }
  68. inline HRESULT ICounterItem::GetStatistics ( double * Max, double * Min, double * Avg, long * Status ) {
  69. HRESULT _hr = raw_GetStatistics(Max, Min, Avg, Status);
  70. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  71. return _hr;
  72. }
  73. //
  74. // dispinterface DICounterItem wrapper method implementations
  75. //
  76. inline double DICounterItem::GetValue ( ) {
  77. double _result;
  78. _com_dispatch_method(this, 0x0, DISPATCH_PROPERTYGET, VT_R8, (void*)&_result, NULL);
  79. return _result;
  80. }
  81. inline void DICounterItem::PutColor ( OLE_COLOR _arg1 ) {
  82. _com_dispatch_method(this, 0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  83. L"\x0003", _arg1);
  84. }
  85. inline OLE_COLOR DICounterItem::GetColor ( ) {
  86. OLE_COLOR _result;
  87. _com_dispatch_method(this, 0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  88. return _result;
  89. }
  90. inline void DICounterItem::PutWidth ( int _arg1 ) {
  91. _com_dispatch_method(this, 0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  92. L"\x0003", _arg1);
  93. }
  94. inline int DICounterItem::GetWidth ( ) {
  95. int _result;
  96. _com_dispatch_method(this, 0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  97. return _result;
  98. }
  99. inline void DICounterItem::PutLineStyle ( int _arg1 ) {
  100. _com_dispatch_method(this, 0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  101. L"\x0003", _arg1);
  102. }
  103. inline int DICounterItem::GetLineStyle ( ) {
  104. int _result;
  105. _com_dispatch_method(this, 0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  106. return _result;
  107. }
  108. inline void DICounterItem::PutScaleFactor ( int _arg1 ) {
  109. _com_dispatch_method(this, 0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  110. L"\x0003", _arg1);
  111. }
  112. inline int DICounterItem::GetScaleFactor ( ) {
  113. int _result;
  114. _com_dispatch_method(this, 0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  115. return _result;
  116. }
  117. inline _bstr_t DICounterItem::GetPath ( ) {
  118. BSTR _result;
  119. _com_dispatch_method(this, 0x5, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&_result, NULL);
  120. return _bstr_t(_result, false);
  121. }
  122. inline HRESULT DICounterItem::GetValue ( double * Value, long * Status ) {
  123. return _com_dispatch_method(this, 0x6001000a, DISPATCH_METHOD, VT_EMPTY, NULL,
  124. L"\x4005\x4003", Value, Status);
  125. }
  126. inline HRESULT DICounterItem::GetStatistics ( double * Max, double * Min, double * Avg, long * Status ) {
  127. return _com_dispatch_method(this, 0x6001000b, DISPATCH_METHOD, VT_EMPTY, NULL,
  128. L"\x4005\x4005\x4005\x4003", Max, Min, Avg, Status);
  129. }
  130. //
  131. // interface ICounters wrapper method implementations
  132. //
  133. inline long ICounters::GetCount ( ) {
  134. long _result;
  135. HRESULT _hr = get_Count(&_result);
  136. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  137. return _result;
  138. }
  139. inline IUnknownPtr ICounters::Get_NewEnum ( ) {
  140. IUnknown * _result;
  141. HRESULT _hr = get__NewEnum(&_result);
  142. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  143. return IUnknownPtr(_result, false);
  144. }
  145. inline DICounterItemPtr ICounters::GetItem ( const _variant_t & index ) {
  146. struct DICounterItem * _result;
  147. HRESULT _hr = get_Item(index, &_result);
  148. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  149. return DICounterItemPtr(_result, false);
  150. }
  151. inline DICounterItemPtr ICounters::Add ( _bstr_t pathname ) {
  152. struct DICounterItem * _result;
  153. HRESULT _hr = raw_Add(pathname, &_result);
  154. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  155. return DICounterItemPtr(_result, false);
  156. }
  157. inline HRESULT ICounters::Remove ( const _variant_t & index ) {
  158. HRESULT _hr = raw_Remove(index);
  159. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  160. return _hr;
  161. }
  162. //
  163. // interface ISystemMonitor wrapper method implementations
  164. //
  165. inline int ISystemMonitor::GetAppearance ( ) {
  166. int _result;
  167. HRESULT _hr = get_Appearance(&_result);
  168. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  169. return _result;
  170. }
  171. inline void ISystemMonitor::PutAppearance ( int iAppearance ) {
  172. HRESULT _hr = put_Appearance(iAppearance);
  173. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  174. }
  175. inline OLE_COLOR ISystemMonitor::GetBackColor ( ) {
  176. OLE_COLOR _result;
  177. HRESULT _hr = get_BackColor(&_result);
  178. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  179. return _result;
  180. }
  181. inline void ISystemMonitor::PutBackColor ( OLE_COLOR pColor ) {
  182. HRESULT _hr = put_BackColor(pColor);
  183. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  184. }
  185. inline int ISystemMonitor::GetBorderStyle ( ) {
  186. int _result;
  187. HRESULT _hr = get_BorderStyle(&_result);
  188. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  189. return _result;
  190. }
  191. inline void ISystemMonitor::PutBorderStyle ( int iBorderStyle ) {
  192. HRESULT _hr = put_BorderStyle(iBorderStyle);
  193. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  194. }
  195. inline OLE_COLOR ISystemMonitor::GetForeColor ( ) {
  196. OLE_COLOR _result;
  197. HRESULT _hr = get_ForeColor(&_result);
  198. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  199. return _result;
  200. }
  201. inline void ISystemMonitor::PutForeColor ( OLE_COLOR pColor ) {
  202. HRESULT _hr = put_ForeColor(pColor);
  203. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  204. }
  205. inline IFontDisp * ISystemMonitor::GetFont ( ) {
  206. IFontDisp * _result;
  207. HRESULT _hr = get_Font(&_result);
  208. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  209. return _result;
  210. }
  211. inline void ISystemMonitor::PutRefFont ( IFontDisp * ppFont ) {
  212. HRESULT _hr = putref_Font(ppFont);
  213. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  214. }
  215. inline ICountersPtr ISystemMonitor::GetCounters ( ) {
  216. struct ICounters * _result;
  217. HRESULT _hr = get_Counters(&_result);
  218. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  219. return ICountersPtr(_result, false);
  220. }
  221. inline void ISystemMonitor::PutShowVerticalGrid ( VARIANT_BOOL pbState ) {
  222. HRESULT _hr = put_ShowVerticalGrid(pbState);
  223. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  224. }
  225. inline VARIANT_BOOL ISystemMonitor::GetShowVerticalGrid ( ) {
  226. VARIANT_BOOL _result;
  227. HRESULT _hr = get_ShowVerticalGrid(&_result);
  228. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  229. return _result;
  230. }
  231. inline void ISystemMonitor::PutShowHorizontalGrid ( VARIANT_BOOL pbState ) {
  232. HRESULT _hr = put_ShowHorizontalGrid(pbState);
  233. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  234. }
  235. inline VARIANT_BOOL ISystemMonitor::GetShowHorizontalGrid ( ) {
  236. VARIANT_BOOL _result;
  237. HRESULT _hr = get_ShowHorizontalGrid(&_result);
  238. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  239. return _result;
  240. }
  241. inline void ISystemMonitor::PutShowLegend ( VARIANT_BOOL pbState ) {
  242. HRESULT _hr = put_ShowLegend(pbState);
  243. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  244. }
  245. inline VARIANT_BOOL ISystemMonitor::GetShowLegend ( ) {
  246. VARIANT_BOOL _result;
  247. HRESULT _hr = get_ShowLegend(&_result);
  248. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  249. return _result;
  250. }
  251. inline void ISystemMonitor::PutShowScaleLabels ( VARIANT_BOOL pbState ) {
  252. HRESULT _hr = put_ShowScaleLabels(pbState);
  253. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  254. }
  255. inline VARIANT_BOOL ISystemMonitor::GetShowScaleLabels ( ) {
  256. VARIANT_BOOL _result;
  257. HRESULT _hr = get_ShowScaleLabels(&_result);
  258. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  259. return _result;
  260. }
  261. inline void ISystemMonitor::PutShowValueBar ( VARIANT_BOOL pbState ) {
  262. HRESULT _hr = put_ShowValueBar(pbState);
  263. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  264. }
  265. inline VARIANT_BOOL ISystemMonitor::GetShowValueBar ( ) {
  266. VARIANT_BOOL _result;
  267. HRESULT _hr = get_ShowValueBar(&_result);
  268. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  269. return _result;
  270. }
  271. inline void ISystemMonitor::PutMaximumScale ( int piValue ) {
  272. HRESULT _hr = put_MaximumScale(piValue);
  273. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  274. }
  275. inline int ISystemMonitor::GetMaximumScale ( ) {
  276. int _result;
  277. HRESULT _hr = get_MaximumScale(&_result);
  278. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  279. return _result;
  280. }
  281. inline void ISystemMonitor::PutMinimumScale ( int piValue ) {
  282. HRESULT _hr = put_MinimumScale(piValue);
  283. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  284. }
  285. inline int ISystemMonitor::GetMinimumScale ( ) {
  286. int _result;
  287. HRESULT _hr = get_MinimumScale(&_result);
  288. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  289. return _result;
  290. }
  291. inline void ISystemMonitor::PutUpdateInterval ( float pfValue ) {
  292. HRESULT _hr = put_UpdateInterval(pfValue);
  293. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  294. }
  295. inline float ISystemMonitor::GetUpdateInterval ( ) {
  296. float _result;
  297. HRESULT _hr = get_UpdateInterval(&_result);
  298. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  299. return _result;
  300. }
  301. inline void ISystemMonitor::PutDisplayType ( enum DisplayTypeConstants peDisplayType ) {
  302. HRESULT _hr = put_DisplayType(peDisplayType);
  303. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  304. }
  305. inline enum DisplayTypeConstants ISystemMonitor::GetDisplayType ( ) {
  306. enum DisplayTypeConstants _result;
  307. HRESULT _hr = get_DisplayType(&_result);
  308. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  309. return _result;
  310. }
  311. inline void ISystemMonitor::PutManualUpdate ( VARIANT_BOOL pbState ) {
  312. HRESULT _hr = put_ManualUpdate(pbState);
  313. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  314. }
  315. inline VARIANT_BOOL ISystemMonitor::GetManualUpdate ( ) {
  316. VARIANT_BOOL _result;
  317. HRESULT _hr = get_ManualUpdate(&_result);
  318. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  319. return _result;
  320. }
  321. inline void ISystemMonitor::PutGraphTitle ( _bstr_t pbsTitle ) {
  322. HRESULT _hr = put_GraphTitle(pbsTitle);
  323. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  324. }
  325. inline _bstr_t ISystemMonitor::GetGraphTitle ( ) {
  326. BSTR _result;
  327. HRESULT _hr = get_GraphTitle(&_result);
  328. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  329. return _bstr_t(_result, false);
  330. }
  331. inline void ISystemMonitor::PutYAxisLabel ( _bstr_t pbsTitle ) {
  332. HRESULT _hr = put_YAxisLabel(pbsTitle);
  333. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  334. }
  335. inline _bstr_t ISystemMonitor::GetYAxisLabel ( ) {
  336. BSTR _result;
  337. HRESULT _hr = get_YAxisLabel(&_result);
  338. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  339. return _bstr_t(_result, false);
  340. }
  341. inline HRESULT ISystemMonitor::CollectSample ( ) {
  342. HRESULT _hr = raw_CollectSample();
  343. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  344. return _hr;
  345. }
  346. inline HRESULT ISystemMonitor::UpdateGraph ( ) {
  347. HRESULT _hr = raw_UpdateGraph();
  348. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  349. return _hr;
  350. }
  351. inline HRESULT ISystemMonitor::BrowseCounters ( ) {
  352. HRESULT _hr = raw_BrowseCounters();
  353. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  354. return _hr;
  355. }
  356. inline HRESULT ISystemMonitor::DisplayProperties ( ) {
  357. HRESULT _hr = raw_DisplayProperties();
  358. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  359. return _hr;
  360. }
  361. inline HRESULT ISystemMonitor::Counter ( int iIndex, struct ICounterItem * * ppICounter ) {
  362. HRESULT _hr = raw_Counter(iIndex, ppICounter);
  363. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  364. return _hr;
  365. }
  366. inline HRESULT ISystemMonitor::AddCounter ( _bstr_t bsPath, struct ICounterItem * * ppICounter ) {
  367. HRESULT _hr = raw_AddCounter(bsPath, ppICounter);
  368. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  369. return _hr;
  370. }
  371. inline HRESULT ISystemMonitor::DeleteCounter ( struct ICounterItem * pCtr ) {
  372. HRESULT _hr = raw_DeleteCounter(pCtr);
  373. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  374. return _hr;
  375. }
  376. inline OLE_COLOR ISystemMonitor::GetBackColorCtl ( ) {
  377. OLE_COLOR _result;
  378. HRESULT _hr = get_BackColorCtl(&_result);
  379. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  380. return _result;
  381. }
  382. inline void ISystemMonitor::PutBackColorCtl ( OLE_COLOR pColor ) {
  383. HRESULT _hr = put_BackColorCtl(pColor);
  384. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  385. }
  386. inline void ISystemMonitor::PutLogFileName ( _bstr_t bsFileName ) {
  387. HRESULT _hr = put_LogFileName(bsFileName);
  388. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  389. }
  390. inline _bstr_t ISystemMonitor::GetLogFileName ( ) {
  391. BSTR _result;
  392. HRESULT _hr = get_LogFileName(&_result);
  393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  394. return _bstr_t(_result, false);
  395. }
  396. inline void ISystemMonitor::PutLogViewStart ( DATE StartTime ) {
  397. HRESULT _hr = put_LogViewStart(StartTime);
  398. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  399. }
  400. inline DATE ISystemMonitor::GetLogViewStart ( ) {
  401. DATE _result;
  402. HRESULT _hr = get_LogViewStart(&_result);
  403. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  404. return _result;
  405. }
  406. inline void ISystemMonitor::PutLogViewStop ( DATE StopTime ) {
  407. HRESULT _hr = put_LogViewStop(StopTime);
  408. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  409. }
  410. inline DATE ISystemMonitor::GetLogViewStop ( ) {
  411. DATE _result;
  412. HRESULT _hr = get_LogViewStop(&_result);
  413. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  414. return _result;
  415. }
  416. inline OLE_COLOR ISystemMonitor::GetGridColor ( ) {
  417. OLE_COLOR _result;
  418. HRESULT _hr = get_GridColor(&_result);
  419. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  420. return _result;
  421. }
  422. inline void ISystemMonitor::PutGridColor ( OLE_COLOR pColor ) {
  423. HRESULT _hr = put_GridColor(pColor);
  424. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  425. }
  426. inline OLE_COLOR ISystemMonitor::GetTimeBarColor ( ) {
  427. OLE_COLOR _result;
  428. HRESULT _hr = get_TimeBarColor(&_result);
  429. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  430. return _result;
  431. }
  432. inline void ISystemMonitor::PutTimeBarColor ( OLE_COLOR pColor ) {
  433. HRESULT _hr = put_TimeBarColor(pColor);
  434. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  435. }
  436. inline VARIANT_BOOL ISystemMonitor::GetHighlight ( ) {
  437. VARIANT_BOOL _result;
  438. HRESULT _hr = get_Highlight(&_result);
  439. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  440. return _result;
  441. }
  442. inline void ISystemMonitor::PutHighlight ( VARIANT_BOOL pbState ) {
  443. HRESULT _hr = put_Highlight(pbState);
  444. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  445. }
  446. inline VARIANT_BOOL ISystemMonitor::GetShowToolbar ( ) {
  447. VARIANT_BOOL _result;
  448. HRESULT _hr = get_ShowToolbar(&_result);
  449. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  450. return _result;
  451. }
  452. inline void ISystemMonitor::PutShowToolbar ( VARIANT_BOOL pbState ) {
  453. HRESULT _hr = put_ShowToolbar(pbState);
  454. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  455. }
  456. inline HRESULT ISystemMonitor::Paste ( ) {
  457. HRESULT _hr = raw_Paste();
  458. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  459. return _hr;
  460. }
  461. inline HRESULT ISystemMonitor::Copy ( ) {
  462. HRESULT _hr = raw_Copy();
  463. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  464. return _hr;
  465. }
  466. inline HRESULT ISystemMonitor::Reset ( ) {
  467. HRESULT _hr = raw_Reset();
  468. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  469. return _hr;
  470. }
  471. inline void ISystemMonitor::PutReadOnly ( VARIANT_BOOL pbState ) {
  472. HRESULT _hr = put_ReadOnly(pbState);
  473. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  474. }
  475. inline VARIANT_BOOL ISystemMonitor::GetReadOnly ( ) {
  476. VARIANT_BOOL _result;
  477. HRESULT _hr = get_ReadOnly(&_result);
  478. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  479. return _result;
  480. }
  481. inline void ISystemMonitor::PutReportValueType ( enum ReportValueTypeConstants peReportValueType ) {
  482. HRESULT _hr = put_ReportValueType(peReportValueType);
  483. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  484. }
  485. inline enum ReportValueTypeConstants ISystemMonitor::GetReportValueType ( ) {
  486. enum ReportValueTypeConstants _result;
  487. HRESULT _hr = get_ReportValueType(&_result);
  488. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  489. return _result;
  490. }
  491. inline void ISystemMonitor::PutMonitorDuplicateInstances ( VARIANT_BOOL pbState ) {
  492. HRESULT _hr = put_MonitorDuplicateInstances(pbState);
  493. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  494. }
  495. inline VARIANT_BOOL ISystemMonitor::GetMonitorDuplicateInstances ( ) {
  496. VARIANT_BOOL _result;
  497. HRESULT _hr = get_MonitorDuplicateInstances(&_result);
  498. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  499. return _result;
  500. }
  501. //
  502. // dispinterface DISystemMonitorInternal wrapper method implementations
  503. //
  504. inline int DISystemMonitorInternal::GetAppearance ( ) {
  505. int _result;
  506. _com_dispatch_method(this, DISPID_APPEARANCE, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  507. return _result;
  508. }
  509. inline void DISystemMonitorInternal::PutAppearance ( int _arg1 ) {
  510. _com_dispatch_method(this, DISPID_APPEARANCE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  511. L"\x0003", _arg1);
  512. }
  513. inline OLE_COLOR DISystemMonitorInternal::GetBackColor ( ) {
  514. OLE_COLOR _result;
  515. _com_dispatch_method(this, DISPID_BACKCOLOR, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  516. return _result;
  517. }
  518. inline void DISystemMonitorInternal::PutBackColor ( OLE_COLOR _arg1 ) {
  519. _com_dispatch_method(this, DISPID_BACKCOLOR, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  520. L"\x0003", _arg1);
  521. }
  522. inline int DISystemMonitorInternal::GetBorderStyle ( ) {
  523. int _result;
  524. _com_dispatch_method(this, DISPID_BORDERSTYLE, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  525. return _result;
  526. }
  527. inline void DISystemMonitorInternal::PutBorderStyle ( int _arg1 ) {
  528. _com_dispatch_method(this, DISPID_BORDERSTYLE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  529. L"\x0003", _arg1);
  530. }
  531. inline OLE_COLOR DISystemMonitorInternal::GetForeColor ( ) {
  532. OLE_COLOR _result;
  533. _com_dispatch_method(this, DISPID_FORECOLOR, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  534. return _result;
  535. }
  536. inline void DISystemMonitorInternal::PutForeColor ( OLE_COLOR _arg1 ) {
  537. _com_dispatch_method(this, DISPID_FORECOLOR, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  538. L"\x0003", _arg1);
  539. }
  540. inline IFontDisp * DISystemMonitorInternal::GetFont ( ) {
  541. IFontDisp * _result;
  542. _com_dispatch_method(this, DISPID_FONT, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&_result, NULL);
  543. return _result;
  544. }
  545. inline void DISystemMonitorInternal::PutRefFont ( IFontDisp * _arg1 ) {
  546. _com_dispatch_method(this, DISPID_FONT, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL,
  547. L"\x0009", _arg1);
  548. }
  549. inline ICountersPtr DISystemMonitorInternal::GetCounters ( ) {
  550. struct ICounters * _result;
  551. _com_dispatch_method(this, 0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&_result, NULL);
  552. return ICountersPtr(_result, false);
  553. }
  554. inline void DISystemMonitorInternal::PutShowVerticalGrid ( VARIANT_BOOL _arg1 ) {
  555. _com_dispatch_method(this, 0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  556. L"\x000b", _arg1);
  557. }
  558. inline VARIANT_BOOL DISystemMonitorInternal::GetShowVerticalGrid ( ) {
  559. VARIANT_BOOL _result;
  560. _com_dispatch_method(this, 0x1, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  561. return _result;
  562. }
  563. inline void DISystemMonitorInternal::PutShowHorizontalGrid ( VARIANT_BOOL _arg1 ) {
  564. _com_dispatch_method(this, 0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  565. L"\x000b", _arg1);
  566. }
  567. inline VARIANT_BOOL DISystemMonitorInternal::GetShowHorizontalGrid ( ) {
  568. VARIANT_BOOL _result;
  569. _com_dispatch_method(this, 0x2, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  570. return _result;
  571. }
  572. inline void DISystemMonitorInternal::PutShowLegend ( VARIANT_BOOL _arg1 ) {
  573. _com_dispatch_method(this, 0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  574. L"\x000b", _arg1);
  575. }
  576. inline VARIANT_BOOL DISystemMonitorInternal::GetShowLegend ( ) {
  577. VARIANT_BOOL _result;
  578. _com_dispatch_method(this, 0x3, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  579. return _result;
  580. }
  581. inline void DISystemMonitorInternal::PutShowScaleLabels ( VARIANT_BOOL _arg1 ) {
  582. _com_dispatch_method(this, 0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  583. L"\x000b", _arg1);
  584. }
  585. inline VARIANT_BOOL DISystemMonitorInternal::GetShowScaleLabels ( ) {
  586. VARIANT_BOOL _result;
  587. _com_dispatch_method(this, 0x4, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  588. return _result;
  589. }
  590. inline void DISystemMonitorInternal::PutShowValueBar ( VARIANT_BOOL _arg1 ) {
  591. _com_dispatch_method(this, 0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  592. L"\x000b", _arg1);
  593. }
  594. inline VARIANT_BOOL DISystemMonitorInternal::GetShowValueBar ( ) {
  595. VARIANT_BOOL _result;
  596. _com_dispatch_method(this, 0x5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  597. return _result;
  598. }
  599. inline void DISystemMonitorInternal::PutMaximumScale ( int _arg1 ) {
  600. _com_dispatch_method(this, 0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  601. L"\x0003", _arg1);
  602. }
  603. inline int DISystemMonitorInternal::GetMaximumScale ( ) {
  604. int _result;
  605. _com_dispatch_method(this, 0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  606. return _result;
  607. }
  608. inline void DISystemMonitorInternal::PutMinimumScale ( int _arg1 ) {
  609. _com_dispatch_method(this, 0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  610. L"\x0003", _arg1);
  611. }
  612. inline int DISystemMonitorInternal::GetMinimumScale ( ) {
  613. int _result;
  614. _com_dispatch_method(this, 0x7, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  615. return _result;
  616. }
  617. inline void DISystemMonitorInternal::PutUpdateInterval ( float _arg1 ) {
  618. _com_dispatch_method(this, 0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  619. L"\x0004", _arg1);
  620. }
  621. inline float DISystemMonitorInternal::GetUpdateInterval ( ) {
  622. float _result;
  623. _com_dispatch_method(this, 0x8, DISPATCH_PROPERTYGET, VT_R4, (void*)&_result, NULL);
  624. return _result;
  625. }
  626. inline void DISystemMonitorInternal::PutDisplayType ( enum DisplayTypeConstants _arg1 ) {
  627. _com_dispatch_method(this, 0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  628. L"\x0003", _arg1);
  629. }
  630. inline enum DisplayTypeConstants DISystemMonitorInternal::GetDisplayType ( ) {
  631. enum DisplayTypeConstants _result;
  632. _com_dispatch_method(this, 0x9, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  633. return _result;
  634. }
  635. inline void DISystemMonitorInternal::PutManualUpdate ( VARIANT_BOOL _arg1 ) {
  636. _com_dispatch_method(this, 0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  637. L"\x000b", _arg1);
  638. }
  639. inline VARIANT_BOOL DISystemMonitorInternal::GetManualUpdate ( ) {
  640. VARIANT_BOOL _result;
  641. _com_dispatch_method(this, 0xa, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  642. return _result;
  643. }
  644. inline void DISystemMonitorInternal::PutGraphTitle ( _bstr_t _arg1 ) {
  645. _com_dispatch_method(this, 0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  646. L"\x0008", (BSTR)_arg1);
  647. }
  648. inline _bstr_t DISystemMonitorInternal::GetGraphTitle ( ) {
  649. BSTR _result;
  650. _com_dispatch_method(this, 0xb, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&_result, NULL);
  651. return _bstr_t(_result, false);
  652. }
  653. inline void DISystemMonitorInternal::PutYAxisLabel ( _bstr_t _arg1 ) {
  654. _com_dispatch_method(this, 0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  655. L"\x0008", (BSTR)_arg1);
  656. }
  657. inline _bstr_t DISystemMonitorInternal::GetYAxisLabel ( ) {
  658. BSTR _result;
  659. _com_dispatch_method(this, 0xc, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&_result, NULL);
  660. return _bstr_t(_result, false);
  661. }
  662. inline HRESULT DISystemMonitorInternal::CollectSample ( ) {
  663. return _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  664. }
  665. inline HRESULT DISystemMonitorInternal::UpdateGraph ( ) {
  666. return _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  667. }
  668. inline HRESULT DISystemMonitorInternal::BrowseCounters ( ) {
  669. return _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  670. }
  671. inline HRESULT DISystemMonitorInternal::DisplayProperties ( ) {
  672. return _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  673. }
  674. inline HRESULT DISystemMonitorInternal::Counter ( int iIndex, struct ICounterItem * * ppICounter ) {
  675. return _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_EMPTY, NULL,
  676. L"\x0003\x400d", iIndex, ppICounter);
  677. }
  678. inline HRESULT DISystemMonitorInternal::AddCounter ( _bstr_t bsPath, struct ICounterItem * * ppICounter ) {
  679. return _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_EMPTY, NULL,
  680. L"\x0008\x400d", (BSTR)bsPath, ppICounter);
  681. }
  682. inline HRESULT DISystemMonitorInternal::DeleteCounter ( struct ICounterItem * pCtr ) {
  683. return _com_dispatch_method(this, 0x14, DISPATCH_METHOD, VT_EMPTY, NULL,
  684. L"\x000d", pCtr);
  685. }
  686. inline OLE_COLOR DISystemMonitorInternal::GetBackColorCtl ( ) {
  687. OLE_COLOR _result;
  688. _com_dispatch_method(this, 0x15, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  689. return _result;
  690. }
  691. inline void DISystemMonitorInternal::PutBackColorCtl ( OLE_COLOR _arg1 ) {
  692. _com_dispatch_method(this, 0x15, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  693. L"\x0003", _arg1);
  694. }
  695. inline void DISystemMonitorInternal::PutLogFileName ( _bstr_t _arg1 ) {
  696. _com_dispatch_method(this, 0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  697. L"\x0008", (BSTR)_arg1);
  698. }
  699. inline _bstr_t DISystemMonitorInternal::GetLogFileName ( ) {
  700. BSTR _result;
  701. _com_dispatch_method(this, 0x16, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&_result, NULL);
  702. return _bstr_t(_result, false);
  703. }
  704. inline void DISystemMonitorInternal::PutLogViewStart ( DATE _arg1 ) {
  705. _com_dispatch_method(this, 0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  706. L"\x0007", _arg1);
  707. }
  708. inline DATE DISystemMonitorInternal::GetLogViewStart ( ) {
  709. DATE _result;
  710. _com_dispatch_method(this, 0x17, DISPATCH_PROPERTYGET, VT_DATE, (void*)&_result, NULL);
  711. return _result;
  712. }
  713. inline void DISystemMonitorInternal::PutLogViewStop ( DATE _arg1 ) {
  714. _com_dispatch_method(this, 0x18, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  715. L"\x0007", _arg1);
  716. }
  717. inline DATE DISystemMonitorInternal::GetLogViewStop ( ) {
  718. DATE _result;
  719. _com_dispatch_method(this, 0x18, DISPATCH_PROPERTYGET, VT_DATE, (void*)&_result, NULL);
  720. return _result;
  721. }
  722. inline OLE_COLOR DISystemMonitorInternal::GetGridColor ( ) {
  723. OLE_COLOR _result;
  724. _com_dispatch_method(this, 0x19, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  725. return _result;
  726. }
  727. inline void DISystemMonitorInternal::PutGridColor ( OLE_COLOR _arg1 ) {
  728. _com_dispatch_method(this, 0x19, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  729. L"\x0003", _arg1);
  730. }
  731. inline OLE_COLOR DISystemMonitorInternal::GetTimeBarColor ( ) {
  732. OLE_COLOR _result;
  733. _com_dispatch_method(this, 0x1a, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  734. return _result;
  735. }
  736. inline void DISystemMonitorInternal::PutTimeBarColor ( OLE_COLOR _arg1 ) {
  737. _com_dispatch_method(this, 0x1a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  738. L"\x0003", _arg1);
  739. }
  740. inline VARIANT_BOOL DISystemMonitorInternal::GetHighlight ( ) {
  741. VARIANT_BOOL _result;
  742. _com_dispatch_method(this, 0x1b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  743. return _result;
  744. }
  745. inline void DISystemMonitorInternal::PutHighlight ( VARIANT_BOOL _arg1 ) {
  746. _com_dispatch_method(this, 0x1b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  747. L"\x000b", _arg1);
  748. }
  749. inline VARIANT_BOOL DISystemMonitorInternal::GetShowToolbar ( ) {
  750. VARIANT_BOOL _result;
  751. _com_dispatch_method(this, 0x1c, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  752. return _result;
  753. }
  754. inline void DISystemMonitorInternal::PutShowToolbar ( VARIANT_BOOL _arg1 ) {
  755. _com_dispatch_method(this, 0x1c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  756. L"\x000b", _arg1);
  757. }
  758. inline HRESULT DISystemMonitorInternal::Paste ( ) {
  759. return _com_dispatch_method(this, 0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  760. }
  761. inline HRESULT DISystemMonitorInternal::Copy ( ) {
  762. return _com_dispatch_method(this, 0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  763. }
  764. inline HRESULT DISystemMonitorInternal::Reset ( ) {
  765. return _com_dispatch_method(this, 0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  766. }
  767. inline void DISystemMonitorInternal::PutReadOnly ( VARIANT_BOOL _arg1 ) {
  768. _com_dispatch_method(this, 0x20, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  769. L"\x000b", _arg1);
  770. }
  771. inline VARIANT_BOOL DISystemMonitorInternal::GetReadOnly ( ) {
  772. VARIANT_BOOL _result;
  773. _com_dispatch_method(this, 0x20, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  774. return _result;
  775. }
  776. inline void DISystemMonitorInternal::PutReportValueType ( enum ReportValueTypeConstants _arg1 ) {
  777. _com_dispatch_method(this, 0x21, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  778. L"\x0003", _arg1);
  779. }
  780. inline enum ReportValueTypeConstants DISystemMonitorInternal::GetReportValueType ( ) {
  781. enum ReportValueTypeConstants _result;
  782. _com_dispatch_method(this, 0x21, DISPATCH_PROPERTYGET, VT_I4, (void*)&_result, NULL);
  783. return _result;
  784. }
  785. inline void DISystemMonitorInternal::PutMonitorDuplicateInstances ( VARIANT_BOOL _arg1 ) {
  786. _com_dispatch_method(this, 0x22, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
  787. L"\x000b", _arg1);
  788. }
  789. inline VARIANT_BOOL DISystemMonitorInternal::GetMonitorDuplicateInstances ( ) {
  790. VARIANT_BOOL _result;
  791. _com_dispatch_method(this, 0x22, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&_result, NULL);
  792. return _result;
  793. }
  794. //
  795. // dispinterface DISystemMonitor wrapper method implementations
  796. //
  797. inline HRESULT DISystemMonitor::CollectSample ( ) {
  798. return _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  799. }
  800. inline HRESULT DISystemMonitor::UpdateGraph ( ) {
  801. return _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  802. }
  803. inline HRESULT DISystemMonitor::BrowseCounters ( ) {
  804. return _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  805. }
  806. inline HRESULT DISystemMonitor::DisplayProperties ( ) {
  807. return _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  808. }
  809. inline HRESULT DISystemMonitor::Paste ( ) {
  810. return _com_dispatch_method(this, 0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  811. }
  812. inline HRESULT DISystemMonitor::Copy ( ) {
  813. return _com_dispatch_method(this, 0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  814. }
  815. inline HRESULT DISystemMonitor::Reset ( ) {
  816. return _com_dispatch_method(this, 0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  817. }
  818. inline int DISystemMonitor::GetAppearance ( ) {
  819. int _result;
  820. _com_dispatch_propget(this, DISPID_APPEARANCE, VT_I4, (void*)&_result);
  821. return _result;
  822. }
  823. inline void DISystemMonitor::PutAppearance ( int _val ) {
  824. _com_dispatch_propput(this, DISPID_APPEARANCE, VT_I4, _val);
  825. }
  826. inline OLE_COLOR DISystemMonitor::GetBackColor ( ) {
  827. OLE_COLOR _result;
  828. _com_dispatch_propget(this, DISPID_BACKCOLOR, VT_I4, (void*)&_result);
  829. return _result;
  830. }
  831. inline void DISystemMonitor::PutBackColor ( OLE_COLOR _val ) {
  832. _com_dispatch_propput(this, DISPID_BACKCOLOR, VT_I4, _val);
  833. }
  834. inline int DISystemMonitor::GetBorderStyle ( ) {
  835. int _result;
  836. _com_dispatch_propget(this, DISPID_BORDERSTYLE, VT_I4, (void*)&_result);
  837. return _result;
  838. }
  839. inline void DISystemMonitor::PutBorderStyle ( int _val ) {
  840. _com_dispatch_propput(this, DISPID_BORDERSTYLE, VT_I4, _val);
  841. }
  842. inline OLE_COLOR DISystemMonitor::GetForeColor ( ) {
  843. OLE_COLOR _result;
  844. _com_dispatch_propget(this, DISPID_FORECOLOR, VT_I4, (void*)&_result);
  845. return _result;
  846. }
  847. inline void DISystemMonitor::PutForeColor ( OLE_COLOR _val ) {
  848. _com_dispatch_propput(this, DISPID_FORECOLOR, VT_I4, _val);
  849. }
  850. inline IFontDisp * DISystemMonitor::GetFont ( ) {
  851. IFontDisp * _result;
  852. _com_dispatch_propget(this, DISPID_FONT, VT_DISPATCH, (void*)&_result);
  853. return _result;
  854. }
  855. inline void DISystemMonitor::PutFont ( IFontDisp * _val ) {
  856. _com_dispatch_propput(this, DISPID_FONT, VT_DISPATCH, _val);
  857. }
  858. inline VARIANT_BOOL DISystemMonitor::GetShowVerticalGrid ( ) {
  859. VARIANT_BOOL _result;
  860. _com_dispatch_propget(this, 0x1, VT_BOOL, (void*)&_result);
  861. return _result;
  862. }
  863. inline void DISystemMonitor::PutShowVerticalGrid ( VARIANT_BOOL _val ) {
  864. _com_dispatch_propput(this, 0x1, VT_BOOL, _val);
  865. }
  866. inline VARIANT_BOOL DISystemMonitor::GetShowHorizontalGrid ( ) {
  867. VARIANT_BOOL _result;
  868. _com_dispatch_propget(this, 0x2, VT_BOOL, (void*)&_result);
  869. return _result;
  870. }
  871. inline void DISystemMonitor::PutShowHorizontalGrid ( VARIANT_BOOL _val ) {
  872. _com_dispatch_propput(this, 0x2, VT_BOOL, _val);
  873. }
  874. inline VARIANT_BOOL DISystemMonitor::GetShowLegend ( ) {
  875. VARIANT_BOOL _result;
  876. _com_dispatch_propget(this, 0x3, VT_BOOL, (void*)&_result);
  877. return _result;
  878. }
  879. inline void DISystemMonitor::PutShowLegend ( VARIANT_BOOL _val ) {
  880. _com_dispatch_propput(this, 0x3, VT_BOOL, _val);
  881. }
  882. inline VARIANT_BOOL DISystemMonitor::GetShowScaleLabels ( ) {
  883. VARIANT_BOOL _result;
  884. _com_dispatch_propget(this, 0x4, VT_BOOL, (void*)&_result);
  885. return _result;
  886. }
  887. inline void DISystemMonitor::PutShowScaleLabels ( VARIANT_BOOL _val ) {
  888. _com_dispatch_propput(this, 0x4, VT_BOOL, _val);
  889. }
  890. inline VARIANT_BOOL DISystemMonitor::GetShowValueBar ( ) {
  891. VARIANT_BOOL _result;
  892. _com_dispatch_propget(this, 0x5, VT_BOOL, (void*)&_result);
  893. return _result;
  894. }
  895. inline void DISystemMonitor::PutShowValueBar ( VARIANT_BOOL _val ) {
  896. _com_dispatch_propput(this, 0x5, VT_BOOL, _val);
  897. }
  898. inline int DISystemMonitor::GetMaximumScale ( ) {
  899. int _result;
  900. _com_dispatch_propget(this, 0x6, VT_I4, (void*)&_result);
  901. return _result;
  902. }
  903. inline void DISystemMonitor::PutMaximumScale ( int _val ) {
  904. _com_dispatch_propput(this, 0x6, VT_I4, _val);
  905. }
  906. inline int DISystemMonitor::GetMinimumScale ( ) {
  907. int _result;
  908. _com_dispatch_propget(this, 0x7, VT_I4, (void*)&_result);
  909. return _result;
  910. }
  911. inline void DISystemMonitor::PutMinimumScale ( int _val ) {
  912. _com_dispatch_propput(this, 0x7, VT_I4, _val);
  913. }
  914. inline float DISystemMonitor::GetUpdateInterval ( ) {
  915. float _result;
  916. _com_dispatch_propget(this, 0x8, VT_R4, (void*)&_result);
  917. return _result;
  918. }
  919. inline void DISystemMonitor::PutUpdateInterval ( float _val ) {
  920. _com_dispatch_propput(this, 0x8, VT_R4, _val);
  921. }
  922. inline enum DisplayTypeConstants DISystemMonitor::GetDisplayType ( ) {
  923. enum DisplayTypeConstants _result;
  924. _com_dispatch_propget(this, 0x9, VT_I4, (void*)&_result);
  925. return _result;
  926. }
  927. inline void DISystemMonitor::PutDisplayType ( enum DisplayTypeConstants _val ) {
  928. _com_dispatch_propput(this, 0x9, VT_I4, _val);
  929. }
  930. inline VARIANT_BOOL DISystemMonitor::GetManualUpdate ( ) {
  931. VARIANT_BOOL _result;
  932. _com_dispatch_propget(this, 0xa, VT_BOOL, (void*)&_result);
  933. return _result;
  934. }
  935. inline void DISystemMonitor::PutManualUpdate ( VARIANT_BOOL _val ) {
  936. _com_dispatch_propput(this, 0xa, VT_BOOL, _val);
  937. }
  938. inline _bstr_t DISystemMonitor::GetGraphTitle ( ) {
  939. BSTR _result;
  940. _com_dispatch_propget(this, 0xb, VT_BSTR, (void*)&_result);
  941. return _bstr_t(_result, false);
  942. }
  943. inline void DISystemMonitor::PutGraphTitle ( _bstr_t _val ) {
  944. _com_dispatch_propput(this, 0xb, VT_BSTR, (BSTR)_val);
  945. }
  946. inline _bstr_t DISystemMonitor::GetYAxisLabel ( ) {
  947. BSTR _result;
  948. _com_dispatch_propget(this, 0xc, VT_BSTR, (void*)&_result);
  949. return _bstr_t(_result, false);
  950. }
  951. inline void DISystemMonitor::PutYAxisLabel ( _bstr_t _val ) {
  952. _com_dispatch_propput(this, 0xc, VT_BSTR, (BSTR)_val);
  953. }
  954. inline ICountersPtr DISystemMonitor::GetCounters ( ) {
  955. struct ICounters * _result;
  956. _com_dispatch_propget(this, 0x0, VT_DISPATCH, (void*)&_result);
  957. return ICountersPtr(_result, false);
  958. }
  959. inline void DISystemMonitor::PutCounters ( struct ICounters * _val ) {
  960. _com_dispatch_propput(this, 0x0, VT_DISPATCH, _val);
  961. }
  962. inline OLE_COLOR DISystemMonitor::GetBackColorCtl ( ) {
  963. OLE_COLOR _result;
  964. _com_dispatch_propget(this, 0x15, VT_I4, (void*)&_result);
  965. return _result;
  966. }
  967. inline void DISystemMonitor::PutBackColorCtl ( OLE_COLOR _val ) {
  968. _com_dispatch_propput(this, 0x15, VT_I4, _val);
  969. }
  970. inline _bstr_t DISystemMonitor::GetLogFileName ( ) {
  971. BSTR _result;
  972. _com_dispatch_propget(this, 0x16, VT_BSTR, (void*)&_result);
  973. return _bstr_t(_result, false);
  974. }
  975. inline void DISystemMonitor::PutLogFileName ( _bstr_t _val ) {
  976. _com_dispatch_propput(this, 0x16, VT_BSTR, (BSTR)_val);
  977. }
  978. inline DATE DISystemMonitor::GetLogViewStart ( ) {
  979. DATE _result;
  980. _com_dispatch_propget(this, 0x17, VT_DATE, (void*)&_result);
  981. return _result;
  982. }
  983. inline void DISystemMonitor::PutLogViewStart ( DATE _val ) {
  984. _com_dispatch_propput(this, 0x17, VT_DATE, _val);
  985. }
  986. inline DATE DISystemMonitor::GetLogViewStop ( ) {
  987. DATE _result;
  988. _com_dispatch_propget(this, 0x18, VT_DATE, (void*)&_result);
  989. return _result;
  990. }
  991. inline void DISystemMonitor::PutLogViewStop ( DATE _val ) {
  992. _com_dispatch_propput(this, 0x18, VT_DATE, _val);
  993. }
  994. inline OLE_COLOR DISystemMonitor::GetGridColor ( ) {
  995. OLE_COLOR _result;
  996. _com_dispatch_propget(this, 0x19, VT_I4, (void*)&_result);
  997. return _result;
  998. }
  999. inline void DISystemMonitor::PutGridColor ( OLE_COLOR _val ) {
  1000. _com_dispatch_propput(this, 0x19, VT_I4, _val);
  1001. }
  1002. inline OLE_COLOR DISystemMonitor::GetTimeBarColor ( ) {
  1003. OLE_COLOR _result;
  1004. _com_dispatch_propget(this, 0x1a, VT_I4, (void*)&_result);
  1005. return _result;
  1006. }
  1007. inline void DISystemMonitor::PutTimeBarColor ( OLE_COLOR _val ) {
  1008. _com_dispatch_propput(this, 0x1a, VT_I4, _val);
  1009. }
  1010. inline VARIANT_BOOL DISystemMonitor::GetHighlight ( ) {
  1011. VARIANT_BOOL _result;
  1012. _com_dispatch_propget(this, 0x1b, VT_BOOL, (void*)&_result);
  1013. return _result;
  1014. }
  1015. inline void DISystemMonitor::PutHighlight ( VARIANT_BOOL _val ) {
  1016. _com_dispatch_propput(this, 0x1b, VT_BOOL, _val);
  1017. }
  1018. inline VARIANT_BOOL DISystemMonitor::GetShowToolbar ( ) {
  1019. VARIANT_BOOL _result;
  1020. _com_dispatch_propget(this, 0x1c, VT_BOOL, (void*)&_result);
  1021. return _result;
  1022. }
  1023. inline void DISystemMonitor::PutShowToolbar ( VARIANT_BOOL _val ) {
  1024. _com_dispatch_propput(this, 0x1c, VT_BOOL, _val);
  1025. }
  1026. inline VARIANT_BOOL DISystemMonitor::GetReadOnly ( ) {
  1027. VARIANT_BOOL _result;
  1028. _com_dispatch_propget(this, 0x20, VT_BOOL, (void*)&_result);
  1029. return _result;
  1030. }
  1031. inline void DISystemMonitor::PutReadOnly ( VARIANT_BOOL _val ) {
  1032. _com_dispatch_propput(this, 0x20, VT_BOOL, _val);
  1033. }
  1034. inline enum ReportValueTypeConstants DISystemMonitor::GetReportValueType ( ) {
  1035. enum ReportValueTypeConstants _result;
  1036. _com_dispatch_propget(this, 0x21, VT_I4, (void*)&_result);
  1037. return _result;
  1038. }
  1039. inline void DISystemMonitor::PutReportValueType ( enum ReportValueTypeConstants _val ) {
  1040. _com_dispatch_propput(this, 0x21, VT_I4, _val);
  1041. }
  1042. inline VARIANT_BOOL DISystemMonitor::GetMonitorDuplicateInstances ( ) {
  1043. VARIANT_BOOL _result;
  1044. _com_dispatch_propget(this, 0x22, VT_BOOL, (void*)&_result);
  1045. return _result;
  1046. }
  1047. inline void DISystemMonitor::PutMonitorDuplicateInstances ( VARIANT_BOOL _val ) {
  1048. _com_dispatch_propput(this, 0x22, VT_BOOL, _val);
  1049. }
  1050. //
  1051. // dispinterface DISystemMonitorEvents wrapper method implementations
  1052. //
  1053. inline HRESULT DISystemMonitorEvents::OnCounterSelected ( int iIndex ) {
  1054. return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL,
  1055. L"\x0003", iIndex);
  1056. }
  1057. inline HRESULT DISystemMonitorEvents::OnCounterAdded ( int iIndex ) {
  1058. return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL,
  1059. L"\x0003", iIndex);
  1060. }
  1061. inline HRESULT DISystemMonitorEvents::OnCounterDeleted ( int iIndex ) {
  1062. return _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_EMPTY, NULL,
  1063. L"\x0003", iIndex);
  1064. }
  1065. inline HRESULT DISystemMonitorEvents::OnSampleCollected ( ) {
  1066. return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1067. }
  1068. inline HRESULT DISystemMonitorEvents::OnDblClick ( int index ) {
  1069. return _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_EMPTY, NULL,
  1070. L"\x0003", index);
  1071. }