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.

922 lines
31 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.tlh
  4. //
  5. // C++ source equivalent of Win32 type library d:\winnt\system32\sysmon.ocx
  6. // compiler-generated file created 06/20/00 at 11:35:19 - DO NOT EDIT!
  7. #pragma once
  8. #pragma pack(push, 8)
  9. #include <comdef.h>
  10. namespace SystemMonitor {
  11. //
  12. // Forward references and typedefs
  13. //
  14. struct __declspec(uuid("771a9520-ee28-11ce-941e-008029004347"))
  15. /* interface */ ICounterItem;
  16. struct __declspec(uuid("c08c4ff2-0e2e-11cf-942c-008029004347"))
  17. /* dispinterface */ DICounterItem;
  18. struct __declspec(uuid("79167962-28fc-11cf-942f-008029004347"))
  19. /* dual interface */ ICounters;
  20. struct __declspec(uuid("194eb241-c32c-11cf-9398-00aa00a3ddea"))
  21. /* interface */ ISystemMonitor;
  22. struct __declspec(uuid("194eb242-c32c-11cf-9398-00aa00a3ddea"))
  23. /* dispinterface */ DISystemMonitorInternal;
  24. struct __declspec(uuid("13d73d81-c32e-11cf-9398-00aa00a3ddea"))
  25. /* dispinterface */ DISystemMonitor;
  26. struct __declspec(uuid("ee660ea0-4abd-11cf-943a-008029004347"))
  27. /* interface */ ISystemMonitorEvents;
  28. struct __declspec(uuid("84979930-4ab3-11cf-943a-008029004347"))
  29. /* dispinterface */ DISystemMonitorEvents;
  30. struct /* coclass */ SystemMonitor;
  31. struct /* coclass */ CounterItem;
  32. struct /* coclass */ Counters;
  33. //
  34. // Smart pointer typedef declarations
  35. //
  36. _COM_SMARTPTR_TYPEDEF(ICounterItem, __uuidof(ICounterItem));
  37. _COM_SMARTPTR_TYPEDEF(DICounterItem, __uuidof(IDispatch));
  38. _COM_SMARTPTR_TYPEDEF(ICounters, __uuidof(ICounters));
  39. _COM_SMARTPTR_TYPEDEF(ISystemMonitor, __uuidof(ISystemMonitor));
  40. _COM_SMARTPTR_TYPEDEF(DISystemMonitorInternal, __uuidof(IDispatch));
  41. _COM_SMARTPTR_TYPEDEF(DISystemMonitor, __uuidof(IDispatch));
  42. _COM_SMARTPTR_TYPEDEF(ISystemMonitorEvents, __uuidof(ISystemMonitorEvents));
  43. _COM_SMARTPTR_TYPEDEF(DISystemMonitorEvents, __uuidof(IDispatch));
  44. //
  45. // Type library items
  46. //
  47. enum DisplayTypeConstants
  48. {
  49. sysmonLineGraph = 1,
  50. sysmonHistogram = 2,
  51. sysmonReport = 3
  52. };
  53. enum ReportValueTypeConstants
  54. {
  55. sysmonDefaultValue = 0,
  56. sysmonCurrentValue = 1,
  57. sysmonAverage = 2,
  58. sysmonMinimum = 3,
  59. sysmonMaximum = 4
  60. };
  61. struct __declspec(uuid("771a9520-ee28-11ce-941e-008029004347"))
  62. ICounterItem : IUnknown
  63. {
  64. //
  65. // Property data
  66. //
  67. __declspec(property(get=GetValue))
  68. double Value;
  69. __declspec(property(get=GetColor,put=PutColor))
  70. OLE_COLOR Color;
  71. __declspec(property(get=GetWidth,put=PutWidth))
  72. int Width;
  73. __declspec(property(get=GetLineStyle,put=PutLineStyle))
  74. int LineStyle;
  75. __declspec(property(get=GetScaleFactor,put=PutScaleFactor))
  76. int ScaleFactor;
  77. __declspec(property(get=GetPath))
  78. _bstr_t Path;
  79. //
  80. // Wrapper methods for error-handling
  81. //
  82. double GetValue ( );
  83. void PutColor (
  84. OLE_COLOR pColor );
  85. OLE_COLOR GetColor ( );
  86. void PutWidth (
  87. int piValue );
  88. int GetWidth ( );
  89. void PutLineStyle (
  90. int piValue );
  91. int GetLineStyle ( );
  92. void PutScaleFactor (
  93. int piValue );
  94. int GetScaleFactor ( );
  95. _bstr_t GetPath ( );
  96. HRESULT GetValue (
  97. double * Value,
  98. long * Status );
  99. HRESULT GetStatistics (
  100. double * Max,
  101. double * Min,
  102. double * Avg,
  103. long * Status );
  104. //
  105. // Raw methods provided by interface
  106. //
  107. virtual HRESULT __stdcall get_Value (
  108. double * pdblValue ) = 0;
  109. virtual HRESULT __stdcall put_Color (
  110. OLE_COLOR pColor ) = 0;
  111. virtual HRESULT __stdcall get_Color (
  112. OLE_COLOR * pColor ) = 0;
  113. virtual HRESULT __stdcall put_Width (
  114. int piValue ) = 0;
  115. virtual HRESULT __stdcall get_Width (
  116. int * piValue ) = 0;
  117. virtual HRESULT __stdcall put_LineStyle (
  118. int piValue ) = 0;
  119. virtual HRESULT __stdcall get_LineStyle (
  120. int * piValue ) = 0;
  121. virtual HRESULT __stdcall put_ScaleFactor (
  122. int piValue ) = 0;
  123. virtual HRESULT __stdcall get_ScaleFactor (
  124. int * piValue ) = 0;
  125. virtual HRESULT __stdcall get_Path (
  126. BSTR * pstrValue ) = 0;
  127. virtual HRESULT __stdcall raw_GetValue (
  128. double * Value,
  129. long * Status ) = 0;
  130. virtual HRESULT __stdcall raw_GetStatistics (
  131. double * Max,
  132. double * Min,
  133. double * Avg,
  134. long * Status ) = 0;
  135. };
  136. struct __declspec(uuid("c08c4ff2-0e2e-11cf-942c-008029004347"))
  137. DICounterItem : IDispatch
  138. {
  139. //
  140. // Property data
  141. //
  142. __declspec(property(get=GetValue))
  143. double Value;
  144. __declspec(property(get=GetColor,put=PutColor))
  145. OLE_COLOR Color;
  146. __declspec(property(get=GetWidth,put=PutWidth))
  147. int Width;
  148. __declspec(property(get=GetLineStyle,put=PutLineStyle))
  149. int LineStyle;
  150. __declspec(property(get=GetScaleFactor,put=PutScaleFactor))
  151. int ScaleFactor;
  152. __declspec(property(get=GetPath))
  153. _bstr_t Path;
  154. //
  155. // Wrapper methods for error-handling
  156. //
  157. // Methods:
  158. double GetValue ( );
  159. void PutColor (
  160. OLE_COLOR _arg1 );
  161. OLE_COLOR GetColor ( );
  162. void PutWidth (
  163. int _arg1 );
  164. int GetWidth ( );
  165. void PutLineStyle (
  166. int _arg1 );
  167. int GetLineStyle ( );
  168. void PutScaleFactor (
  169. int _arg1 );
  170. int GetScaleFactor ( );
  171. _bstr_t GetPath ( );
  172. HRESULT GetValue (
  173. double * Value,
  174. long * Status );
  175. HRESULT GetStatistics (
  176. double * Max,
  177. double * Min,
  178. double * Avg,
  179. long * Status );
  180. };
  181. struct __declspec(uuid("79167962-28fc-11cf-942f-008029004347"))
  182. ICounters : IDispatch
  183. {
  184. //
  185. // Property data
  186. //
  187. __declspec(property(get=GetCount))
  188. long Count;
  189. __declspec(property(get=GetItem))
  190. DICounterItemPtr Item[];
  191. __declspec(property(get=Get_NewEnum))
  192. IUnknownPtr _NewEnum;
  193. //
  194. // Wrapper methods for error-handling
  195. //
  196. long GetCount ( );
  197. IUnknownPtr Get_NewEnum ( );
  198. DICounterItemPtr GetItem (
  199. const _variant_t & index );
  200. DICounterItemPtr Add (
  201. _bstr_t pathname );
  202. HRESULT Remove (
  203. const _variant_t & index );
  204. //
  205. // Raw methods provided by interface
  206. //
  207. virtual HRESULT __stdcall get_Count (
  208. long * pLong ) = 0;
  209. virtual HRESULT __stdcall get__NewEnum (
  210. IUnknown * * ppIunk ) = 0;
  211. virtual HRESULT __stdcall get_Item (
  212. VARIANT index,
  213. struct DICounterItem * * ppI ) = 0;
  214. virtual HRESULT __stdcall raw_Add (
  215. BSTR pathname,
  216. struct DICounterItem * * ppI ) = 0;
  217. virtual HRESULT __stdcall raw_Remove (
  218. VARIANT index ) = 0;
  219. };
  220. struct __declspec(uuid("194eb241-c32c-11cf-9398-00aa00a3ddea"))
  221. ISystemMonitor : IUnknown
  222. {
  223. //
  224. // Property data
  225. //
  226. __declspec(property(get=GetCounters))
  227. ICountersPtr Counters;
  228. __declspec(property(get=GetShowVerticalGrid,put=PutShowVerticalGrid))
  229. VARIANT_BOOL ShowVerticalGrid;
  230. __declspec(property(get=GetShowHorizontalGrid,put=PutShowHorizontalGrid))
  231. VARIANT_BOOL ShowHorizontalGrid;
  232. __declspec(property(get=GetShowLegend,put=PutShowLegend))
  233. VARIANT_BOOL ShowLegend;
  234. __declspec(property(get=GetShowScaleLabels,put=PutShowScaleLabels))
  235. VARIANT_BOOL ShowScaleLabels;
  236. __declspec(property(get=GetShowValueBar,put=PutShowValueBar))
  237. VARIANT_BOOL ShowValueBar;
  238. __declspec(property(get=GetMaximumScale,put=PutMaximumScale))
  239. int MaximumScale;
  240. __declspec(property(get=GetBorderStyle,put=PutBorderStyle))
  241. int BorderStyle;
  242. __declspec(property(get=GetMinimumScale,put=PutMinimumScale))
  243. int MinimumScale;
  244. __declspec(property(get=GetUpdateInterval,put=PutUpdateInterval))
  245. float UpdateInterval;
  246. __declspec(property(get=GetBackColor,put=PutBackColor))
  247. OLE_COLOR BackColor;
  248. __declspec(property(get=GetDisplayType,put=PutDisplayType))
  249. enum DisplayTypeConstants DisplayType;
  250. __declspec(property(get=GetManualUpdate,put=PutManualUpdate))
  251. VARIANT_BOOL ManualUpdate;
  252. __declspec(property(get=GetGraphTitle,put=PutGraphTitle))
  253. _bstr_t GraphTitle;
  254. __declspec(property(get=GetYAxisLabel,put=PutYAxisLabel))
  255. _bstr_t YAxisLabel;
  256. __declspec(property(get=GetBackColorCtl,put=PutBackColorCtl))
  257. OLE_COLOR BackColorCtl;
  258. __declspec(property(get=GetLogFileName,put=PutLogFileName))
  259. _bstr_t LogFileName;
  260. __declspec(property(get=GetLogViewStart,put=PutLogViewStart))
  261. DATE LogViewStart;
  262. __declspec(property(get=GetLogViewStop,put=PutLogViewStop))
  263. DATE LogViewStop;
  264. __declspec(property(get=GetGridColor,put=PutGridColor))
  265. OLE_COLOR GridColor;
  266. __declspec(property(get=GetTimeBarColor,put=PutTimeBarColor))
  267. OLE_COLOR TimeBarColor;
  268. __declspec(property(get=GetHighlight,put=PutHighlight))
  269. VARIANT_BOOL Highlight;
  270. __declspec(property(get=GetAppearance,put=PutAppearance))
  271. int Appearance;
  272. __declspec(property(get=GetShowToolbar,put=PutShowToolbar))
  273. VARIANT_BOOL ShowToolbar;
  274. __declspec(property(get=GetReadOnly,put=PutReadOnly))
  275. VARIANT_BOOL ReadOnly;
  276. __declspec(property(get=GetReportValueType,put=PutReportValueType))
  277. enum ReportValueTypeConstants ReportValueType;
  278. __declspec(property(get=GetMonitorDuplicateInstances,put=PutMonitorDuplicateInstances))
  279. VARIANT_BOOL MonitorDuplicateInstances;
  280. __declspec(property(get=GetForeColor,put=PutForeColor))
  281. OLE_COLOR ForeColor;
  282. //
  283. // Wrapper methods for error-handling
  284. //
  285. int GetAppearance ( );
  286. void PutAppearance (
  287. int iAppearance );
  288. OLE_COLOR GetBackColor ( );
  289. void PutBackColor (
  290. OLE_COLOR pColor );
  291. int GetBorderStyle ( );
  292. void PutBorderStyle (
  293. int iBorderStyle );
  294. OLE_COLOR GetForeColor ( );
  295. void PutForeColor (
  296. OLE_COLOR pColor );
  297. IFontDisp * GetFont ( );
  298. void PutRefFont (
  299. IFontDisp * ppFont );
  300. ICountersPtr GetCounters ( );
  301. void PutShowVerticalGrid (
  302. VARIANT_BOOL pbState );
  303. VARIANT_BOOL GetShowVerticalGrid ( );
  304. void PutShowHorizontalGrid (
  305. VARIANT_BOOL pbState );
  306. VARIANT_BOOL GetShowHorizontalGrid ( );
  307. void PutShowLegend (
  308. VARIANT_BOOL pbState );
  309. VARIANT_BOOL GetShowLegend ( );
  310. void PutShowScaleLabels (
  311. VARIANT_BOOL pbState );
  312. VARIANT_BOOL GetShowScaleLabels ( );
  313. void PutShowValueBar (
  314. VARIANT_BOOL pbState );
  315. VARIANT_BOOL GetShowValueBar ( );
  316. void PutMaximumScale (
  317. int piValue );
  318. int GetMaximumScale ( );
  319. void PutMinimumScale (
  320. int piValue );
  321. int GetMinimumScale ( );
  322. void PutUpdateInterval (
  323. float pfValue );
  324. float GetUpdateInterval ( );
  325. void PutDisplayType (
  326. enum DisplayTypeConstants peDisplayType );
  327. enum DisplayTypeConstants GetDisplayType ( );
  328. void PutManualUpdate (
  329. VARIANT_BOOL pbState );
  330. VARIANT_BOOL GetManualUpdate ( );
  331. void PutGraphTitle (
  332. _bstr_t pbsTitle );
  333. _bstr_t GetGraphTitle ( );
  334. void PutYAxisLabel (
  335. _bstr_t pbsTitle );
  336. _bstr_t GetYAxisLabel ( );
  337. HRESULT CollectSample ( );
  338. HRESULT UpdateGraph ( );
  339. HRESULT BrowseCounters ( );
  340. HRESULT DisplayProperties ( );
  341. HRESULT Counter (
  342. int iIndex,
  343. struct ICounterItem * * ppICounter );
  344. HRESULT AddCounter (
  345. _bstr_t bsPath,
  346. struct ICounterItem * * ppICounter );
  347. HRESULT DeleteCounter (
  348. struct ICounterItem * pCtr );
  349. OLE_COLOR GetBackColorCtl ( );
  350. void PutBackColorCtl (
  351. OLE_COLOR pColor );
  352. void PutLogFileName (
  353. _bstr_t bsFileName );
  354. _bstr_t GetLogFileName ( );
  355. void PutLogViewStart (
  356. DATE StartTime );
  357. DATE GetLogViewStart ( );
  358. void PutLogViewStop (
  359. DATE StopTime );
  360. DATE GetLogViewStop ( );
  361. OLE_COLOR GetGridColor ( );
  362. void PutGridColor (
  363. OLE_COLOR pColor );
  364. OLE_COLOR GetTimeBarColor ( );
  365. void PutTimeBarColor (
  366. OLE_COLOR pColor );
  367. VARIANT_BOOL GetHighlight ( );
  368. void PutHighlight (
  369. VARIANT_BOOL pbState );
  370. VARIANT_BOOL GetShowToolbar ( );
  371. void PutShowToolbar (
  372. VARIANT_BOOL pbState );
  373. HRESULT Paste ( );
  374. HRESULT Copy ( );
  375. HRESULT Reset ( );
  376. void PutReadOnly (
  377. VARIANT_BOOL pbState );
  378. VARIANT_BOOL GetReadOnly ( );
  379. void PutReportValueType (
  380. enum ReportValueTypeConstants peReportValueType );
  381. enum ReportValueTypeConstants GetReportValueType ( );
  382. void PutMonitorDuplicateInstances (
  383. VARIANT_BOOL pbState );
  384. VARIANT_BOOL GetMonitorDuplicateInstances ( );
  385. //
  386. // Raw methods provided by interface
  387. //
  388. virtual HRESULT __stdcall get_Appearance (
  389. int * iAppearance ) = 0;
  390. virtual HRESULT __stdcall put_Appearance (
  391. int iAppearance ) = 0;
  392. virtual HRESULT __stdcall get_BackColor (
  393. OLE_COLOR * pColor ) = 0;
  394. virtual HRESULT __stdcall put_BackColor (
  395. OLE_COLOR pColor ) = 0;
  396. virtual HRESULT __stdcall get_BorderStyle (
  397. int * iBorderStyle ) = 0;
  398. virtual HRESULT __stdcall put_BorderStyle (
  399. int iBorderStyle ) = 0;
  400. virtual HRESULT __stdcall get_ForeColor (
  401. OLE_COLOR * pColor ) = 0;
  402. virtual HRESULT __stdcall put_ForeColor (
  403. OLE_COLOR pColor ) = 0;
  404. virtual HRESULT __stdcall get_Font (
  405. IFontDisp * * ppFont ) = 0;
  406. virtual HRESULT __stdcall putref_Font (
  407. IFontDisp * ppFont ) = 0;
  408. virtual HRESULT __stdcall get_Counters (
  409. struct ICounters * * ppICounters ) = 0;
  410. virtual HRESULT __stdcall put_ShowVerticalGrid (
  411. VARIANT_BOOL pbState ) = 0;
  412. virtual HRESULT __stdcall get_ShowVerticalGrid (
  413. VARIANT_BOOL * pbState ) = 0;
  414. virtual HRESULT __stdcall put_ShowHorizontalGrid (
  415. VARIANT_BOOL pbState ) = 0;
  416. virtual HRESULT __stdcall get_ShowHorizontalGrid (
  417. VARIANT_BOOL * pbState ) = 0;
  418. virtual HRESULT __stdcall put_ShowLegend (
  419. VARIANT_BOOL pbState ) = 0;
  420. virtual HRESULT __stdcall get_ShowLegend (
  421. VARIANT_BOOL * pbState ) = 0;
  422. virtual HRESULT __stdcall put_ShowScaleLabels (
  423. VARIANT_BOOL pbState ) = 0;
  424. virtual HRESULT __stdcall get_ShowScaleLabels (
  425. VARIANT_BOOL * pbState ) = 0;
  426. virtual HRESULT __stdcall put_ShowValueBar (
  427. VARIANT_BOOL pbState ) = 0;
  428. virtual HRESULT __stdcall get_ShowValueBar (
  429. VARIANT_BOOL * pbState ) = 0;
  430. virtual HRESULT __stdcall put_MaximumScale (
  431. int piValue ) = 0;
  432. virtual HRESULT __stdcall get_MaximumScale (
  433. int * piValue ) = 0;
  434. virtual HRESULT __stdcall put_MinimumScale (
  435. int piValue ) = 0;
  436. virtual HRESULT __stdcall get_MinimumScale (
  437. int * piValue ) = 0;
  438. virtual HRESULT __stdcall put_UpdateInterval (
  439. float pfValue ) = 0;
  440. virtual HRESULT __stdcall get_UpdateInterval (
  441. float * pfValue ) = 0;
  442. virtual HRESULT __stdcall put_DisplayType (
  443. enum DisplayTypeConstants peDisplayType ) = 0;
  444. virtual HRESULT __stdcall get_DisplayType (
  445. enum DisplayTypeConstants * peDisplayType ) = 0;
  446. virtual HRESULT __stdcall put_ManualUpdate (
  447. VARIANT_BOOL pbState ) = 0;
  448. virtual HRESULT __stdcall get_ManualUpdate (
  449. VARIANT_BOOL * pbState ) = 0;
  450. virtual HRESULT __stdcall put_GraphTitle (
  451. BSTR pbsTitle ) = 0;
  452. virtual HRESULT __stdcall get_GraphTitle (
  453. BSTR * pbsTitle ) = 0;
  454. virtual HRESULT __stdcall put_YAxisLabel (
  455. BSTR pbsTitle ) = 0;
  456. virtual HRESULT __stdcall get_YAxisLabel (
  457. BSTR * pbsTitle ) = 0;
  458. virtual HRESULT __stdcall raw_CollectSample ( ) = 0;
  459. virtual HRESULT __stdcall raw_UpdateGraph ( ) = 0;
  460. virtual HRESULT __stdcall raw_BrowseCounters ( ) = 0;
  461. virtual HRESULT __stdcall raw_DisplayProperties ( ) = 0;
  462. virtual HRESULT __stdcall raw_Counter (
  463. int iIndex,
  464. struct ICounterItem * * ppICounter ) = 0;
  465. virtual HRESULT __stdcall raw_AddCounter (
  466. BSTR bsPath,
  467. struct ICounterItem * * ppICounter ) = 0;
  468. virtual HRESULT __stdcall raw_DeleteCounter (
  469. struct ICounterItem * pCtr ) = 0;
  470. virtual HRESULT __stdcall get_BackColorCtl (
  471. OLE_COLOR * pColor ) = 0;
  472. virtual HRESULT __stdcall put_BackColorCtl (
  473. OLE_COLOR pColor ) = 0;
  474. virtual HRESULT __stdcall put_LogFileName (
  475. BSTR bsFileName ) = 0;
  476. virtual HRESULT __stdcall get_LogFileName (
  477. BSTR * bsFileName ) = 0;
  478. virtual HRESULT __stdcall put_LogViewStart (
  479. DATE StartTime ) = 0;
  480. virtual HRESULT __stdcall get_LogViewStart (
  481. DATE * StartTime ) = 0;
  482. virtual HRESULT __stdcall put_LogViewStop (
  483. DATE StopTime ) = 0;
  484. virtual HRESULT __stdcall get_LogViewStop (
  485. DATE * StopTime ) = 0;
  486. virtual HRESULT __stdcall get_GridColor (
  487. OLE_COLOR * pColor ) = 0;
  488. virtual HRESULT __stdcall put_GridColor (
  489. OLE_COLOR pColor ) = 0;
  490. virtual HRESULT __stdcall get_TimeBarColor (
  491. OLE_COLOR * pColor ) = 0;
  492. virtual HRESULT __stdcall put_TimeBarColor (
  493. OLE_COLOR pColor ) = 0;
  494. virtual HRESULT __stdcall get_Highlight (
  495. VARIANT_BOOL * pbState ) = 0;
  496. virtual HRESULT __stdcall put_Highlight (
  497. VARIANT_BOOL pbState ) = 0;
  498. virtual HRESULT __stdcall get_ShowToolbar (
  499. VARIANT_BOOL * pbState ) = 0;
  500. virtual HRESULT __stdcall put_ShowToolbar (
  501. VARIANT_BOOL pbState ) = 0;
  502. virtual HRESULT __stdcall raw_Paste ( ) = 0;
  503. virtual HRESULT __stdcall raw_Copy ( ) = 0;
  504. virtual HRESULT __stdcall raw_Reset ( ) = 0;
  505. virtual HRESULT __stdcall put_ReadOnly (
  506. VARIANT_BOOL pbState ) = 0;
  507. virtual HRESULT __stdcall get_ReadOnly (
  508. VARIANT_BOOL * pbState ) = 0;
  509. virtual HRESULT __stdcall put_ReportValueType (
  510. enum ReportValueTypeConstants peReportValueType ) = 0;
  511. virtual HRESULT __stdcall get_ReportValueType (
  512. enum ReportValueTypeConstants * peReportValueType ) = 0;
  513. virtual HRESULT __stdcall put_MonitorDuplicateInstances (
  514. VARIANT_BOOL pbState ) = 0;
  515. virtual HRESULT __stdcall get_MonitorDuplicateInstances (
  516. VARIANT_BOOL * pbState ) = 0;
  517. };
  518. struct __declspec(uuid("194eb242-c32c-11cf-9398-00aa00a3ddea"))
  519. DISystemMonitorInternal : IDispatch
  520. {
  521. //
  522. // Property data
  523. //
  524. __declspec(property(get=GetCounters))
  525. ICountersPtr Counters;
  526. __declspec(property(get=GetShowVerticalGrid,put=PutShowVerticalGrid))
  527. VARIANT_BOOL ShowVerticalGrid;
  528. __declspec(property(get=GetShowHorizontalGrid,put=PutShowHorizontalGrid))
  529. VARIANT_BOOL ShowHorizontalGrid;
  530. __declspec(property(get=GetShowLegend,put=PutShowLegend))
  531. VARIANT_BOOL ShowLegend;
  532. __declspec(property(get=GetShowScaleLabels,put=PutShowScaleLabels))
  533. VARIANT_BOOL ShowScaleLabels;
  534. __declspec(property(get=GetShowValueBar,put=PutShowValueBar))
  535. VARIANT_BOOL ShowValueBar;
  536. __declspec(property(get=GetMaximumScale,put=PutMaximumScale))
  537. int MaximumScale;
  538. __declspec(property(get=GetBorderStyle,put=PutBorderStyle))
  539. int BorderStyle;
  540. __declspec(property(get=GetMinimumScale,put=PutMinimumScale))
  541. int MinimumScale;
  542. __declspec(property(get=GetUpdateInterval,put=PutUpdateInterval))
  543. float UpdateInterval;
  544. __declspec(property(get=GetBackColor,put=PutBackColor))
  545. OLE_COLOR BackColor;
  546. __declspec(property(get=GetDisplayType,put=PutDisplayType))
  547. enum DisplayTypeConstants DisplayType;
  548. __declspec(property(get=GetManualUpdate,put=PutManualUpdate))
  549. VARIANT_BOOL ManualUpdate;
  550. __declspec(property(get=GetGraphTitle,put=PutGraphTitle))
  551. _bstr_t GraphTitle;
  552. __declspec(property(get=GetYAxisLabel,put=PutYAxisLabel))
  553. _bstr_t YAxisLabel;
  554. __declspec(property(get=GetBackColorCtl,put=PutBackColorCtl))
  555. OLE_COLOR BackColorCtl;
  556. __declspec(property(get=GetLogFileName,put=PutLogFileName))
  557. _bstr_t LogFileName;
  558. __declspec(property(get=GetLogViewStart,put=PutLogViewStart))
  559. DATE LogViewStart;
  560. __declspec(property(get=GetLogViewStop,put=PutLogViewStop))
  561. DATE LogViewStop;
  562. __declspec(property(get=GetGridColor,put=PutGridColor))
  563. OLE_COLOR GridColor;
  564. __declspec(property(get=GetTimeBarColor,put=PutTimeBarColor))
  565. OLE_COLOR TimeBarColor;
  566. __declspec(property(get=GetHighlight,put=PutHighlight))
  567. VARIANT_BOOL Highlight;
  568. __declspec(property(get=GetAppearance,put=PutAppearance))
  569. int Appearance;
  570. __declspec(property(get=GetShowToolbar,put=PutShowToolbar))
  571. VARIANT_BOOL ShowToolbar;
  572. __declspec(property(get=GetReadOnly,put=PutReadOnly))
  573. VARIANT_BOOL ReadOnly;
  574. __declspec(property(get=GetReportValueType,put=PutReportValueType))
  575. enum ReportValueTypeConstants ReportValueType;
  576. __declspec(property(get=GetMonitorDuplicateInstances,put=PutMonitorDuplicateInstances))
  577. VARIANT_BOOL MonitorDuplicateInstances;
  578. __declspec(property(get=GetForeColor,put=PutForeColor))
  579. OLE_COLOR ForeColor;
  580. //
  581. // Wrapper methods for error-handling
  582. //
  583. // Methods:
  584. int GetAppearance ( );
  585. void PutAppearance (
  586. int _arg1 );
  587. OLE_COLOR GetBackColor ( );
  588. void PutBackColor (
  589. OLE_COLOR _arg1 );
  590. int GetBorderStyle ( );
  591. void PutBorderStyle (
  592. int _arg1 );
  593. OLE_COLOR GetForeColor ( );
  594. void PutForeColor (
  595. OLE_COLOR _arg1 );
  596. IFontDisp * GetFont ( );
  597. void PutRefFont (
  598. IFontDisp * _arg1 );
  599. ICountersPtr GetCounters ( );
  600. void PutShowVerticalGrid (
  601. VARIANT_BOOL _arg1 );
  602. VARIANT_BOOL GetShowVerticalGrid ( );
  603. void PutShowHorizontalGrid (
  604. VARIANT_BOOL _arg1 );
  605. VARIANT_BOOL GetShowHorizontalGrid ( );
  606. void PutShowLegend (
  607. VARIANT_BOOL _arg1 );
  608. VARIANT_BOOL GetShowLegend ( );
  609. void PutShowScaleLabels (
  610. VARIANT_BOOL _arg1 );
  611. VARIANT_BOOL GetShowScaleLabels ( );
  612. void PutShowValueBar (
  613. VARIANT_BOOL _arg1 );
  614. VARIANT_BOOL GetShowValueBar ( );
  615. void PutMaximumScale (
  616. int _arg1 );
  617. int GetMaximumScale ( );
  618. void PutMinimumScale (
  619. int _arg1 );
  620. int GetMinimumScale ( );
  621. void PutUpdateInterval (
  622. float _arg1 );
  623. float GetUpdateInterval ( );
  624. void PutDisplayType (
  625. enum DisplayTypeConstants _arg1 );
  626. enum DisplayTypeConstants GetDisplayType ( );
  627. void PutManualUpdate (
  628. VARIANT_BOOL _arg1 );
  629. VARIANT_BOOL GetManualUpdate ( );
  630. void PutGraphTitle (
  631. _bstr_t _arg1 );
  632. _bstr_t GetGraphTitle ( );
  633. void PutYAxisLabel (
  634. _bstr_t _arg1 );
  635. _bstr_t GetYAxisLabel ( );
  636. HRESULT CollectSample ( );
  637. HRESULT UpdateGraph ( );
  638. HRESULT BrowseCounters ( );
  639. HRESULT DisplayProperties ( );
  640. HRESULT Counter (
  641. int iIndex,
  642. struct ICounterItem * * ppICounter );
  643. HRESULT AddCounter (
  644. _bstr_t bsPath,
  645. struct ICounterItem * * ppICounter );
  646. HRESULT DeleteCounter (
  647. struct ICounterItem * pCtr );
  648. OLE_COLOR GetBackColorCtl ( );
  649. void PutBackColorCtl (
  650. OLE_COLOR _arg1 );
  651. void PutLogFileName (
  652. _bstr_t _arg1 );
  653. _bstr_t GetLogFileName ( );
  654. void PutLogViewStart (
  655. DATE _arg1 );
  656. DATE GetLogViewStart ( );
  657. void PutLogViewStop (
  658. DATE _arg1 );
  659. DATE GetLogViewStop ( );
  660. OLE_COLOR GetGridColor ( );
  661. void PutGridColor (
  662. OLE_COLOR _arg1 );
  663. OLE_COLOR GetTimeBarColor ( );
  664. void PutTimeBarColor (
  665. OLE_COLOR _arg1 );
  666. VARIANT_BOOL GetHighlight ( );
  667. void PutHighlight (
  668. VARIANT_BOOL _arg1 );
  669. VARIANT_BOOL GetShowToolbar ( );
  670. void PutShowToolbar (
  671. VARIANT_BOOL _arg1 );
  672. HRESULT Paste ( );
  673. HRESULT Copy ( );
  674. HRESULT Reset ( );
  675. void PutReadOnly (
  676. VARIANT_BOOL _arg1 );
  677. VARIANT_BOOL GetReadOnly ( );
  678. void PutReportValueType (
  679. enum ReportValueTypeConstants _arg1 );
  680. enum ReportValueTypeConstants GetReportValueType ( );
  681. void PutMonitorDuplicateInstances (
  682. VARIANT_BOOL _arg1 );
  683. VARIANT_BOOL GetMonitorDuplicateInstances ( );
  684. };
  685. struct __declspec(uuid("13d73d81-c32e-11cf-9398-00aa00a3ddea"))
  686. DISystemMonitor : IDispatch
  687. {
  688. //
  689. // Property data
  690. //
  691. __declspec(property(get=GetAppearance,put=PutAppearance))
  692. int Appearance;
  693. __declspec(property(get=GetBackColor,put=PutBackColor))
  694. OLE_COLOR BackColor;
  695. __declspec(property(get=GetBorderStyle,put=PutBorderStyle))
  696. int BorderStyle;
  697. __declspec(property(get=GetForeColor,put=PutForeColor))
  698. OLE_COLOR ForeColor;
  699. __declspec(property(get=GetFont,put=PutFont))
  700. IFontDisp * Font;
  701. __declspec(property(get=GetShowVerticalGrid,put=PutShowVerticalGrid))
  702. VARIANT_BOOL ShowVerticalGrid;
  703. __declspec(property(get=GetShowHorizontalGrid,put=PutShowHorizontalGrid))
  704. VARIANT_BOOL ShowHorizontalGrid;
  705. __declspec(property(get=GetShowLegend,put=PutShowLegend))
  706. VARIANT_BOOL ShowLegend;
  707. __declspec(property(get=GetShowScaleLabels,put=PutShowScaleLabels))
  708. VARIANT_BOOL ShowScaleLabels;
  709. __declspec(property(get=GetShowValueBar,put=PutShowValueBar))
  710. VARIANT_BOOL ShowValueBar;
  711. __declspec(property(get=GetMaximumScale,put=PutMaximumScale))
  712. int MaximumScale;
  713. __declspec(property(get=GetMinimumScale,put=PutMinimumScale))
  714. int MinimumScale;
  715. __declspec(property(get=GetUpdateInterval,put=PutUpdateInterval))
  716. float UpdateInterval;
  717. __declspec(property(get=GetDisplayType,put=PutDisplayType))
  718. enum DisplayTypeConstants DisplayType;
  719. __declspec(property(get=GetManualUpdate,put=PutManualUpdate))
  720. VARIANT_BOOL ManualUpdate;
  721. __declspec(property(get=GetGraphTitle,put=PutGraphTitle))
  722. _bstr_t GraphTitle;
  723. __declspec(property(get=GetYAxisLabel,put=PutYAxisLabel))
  724. _bstr_t YAxisLabel;
  725. __declspec(property(get=GetCounters,put=PutCounters))
  726. ICountersPtr Counters;
  727. __declspec(property(get=GetBackColorCtl,put=PutBackColorCtl))
  728. OLE_COLOR BackColorCtl;
  729. __declspec(property(get=GetLogFileName,put=PutLogFileName))
  730. _bstr_t LogFileName;
  731. __declspec(property(get=GetLogViewStart,put=PutLogViewStart))
  732. DATE LogViewStart;
  733. __declspec(property(get=GetLogViewStop,put=PutLogViewStop))
  734. DATE LogViewStop;
  735. __declspec(property(get=GetGridColor,put=PutGridColor))
  736. OLE_COLOR GridColor;
  737. __declspec(property(get=GetTimeBarColor,put=PutTimeBarColor))
  738. OLE_COLOR TimeBarColor;
  739. __declspec(property(get=GetHighlight,put=PutHighlight))
  740. VARIANT_BOOL Highlight;
  741. __declspec(property(get=GetShowToolbar,put=PutShowToolbar))
  742. VARIANT_BOOL ShowToolbar;
  743. __declspec(property(get=GetReadOnly,put=PutReadOnly))
  744. VARIANT_BOOL ReadOnly;
  745. __declspec(property(get=GetReportValueType,put=PutReportValueType))
  746. enum ReportValueTypeConstants ReportValueType;
  747. __declspec(property(get=GetMonitorDuplicateInstances,put=PutMonitorDuplicateInstances))
  748. VARIANT_BOOL MonitorDuplicateInstances;
  749. //
  750. // Wrapper methods for error-handling
  751. //
  752. // Methods:
  753. HRESULT CollectSample ( );
  754. HRESULT UpdateGraph ( );
  755. HRESULT BrowseCounters ( );
  756. HRESULT DisplayProperties ( );
  757. HRESULT Paste ( );
  758. HRESULT Copy ( );
  759. HRESULT Reset ( );
  760. // Properties:
  761. int GetAppearance ( );
  762. void PutAppearance ( int _val );
  763. OLE_COLOR GetBackColor ( );
  764. void PutBackColor ( OLE_COLOR _val );
  765. int GetBorderStyle ( );
  766. void PutBorderStyle ( int _val );
  767. OLE_COLOR GetForeColor ( );
  768. void PutForeColor ( OLE_COLOR _val );
  769. IFontDisp * GetFont ( );
  770. void PutFont ( IFontDisp * _val );
  771. VARIANT_BOOL GetShowVerticalGrid ( );
  772. void PutShowVerticalGrid ( VARIANT_BOOL _val );
  773. VARIANT_BOOL GetShowHorizontalGrid ( );
  774. void PutShowHorizontalGrid ( VARIANT_BOOL _val );
  775. VARIANT_BOOL GetShowLegend ( );
  776. void PutShowLegend ( VARIANT_BOOL _val );
  777. VARIANT_BOOL GetShowScaleLabels ( );
  778. void PutShowScaleLabels ( VARIANT_BOOL _val );
  779. VARIANT_BOOL GetShowValueBar ( );
  780. void PutShowValueBar ( VARIANT_BOOL _val );
  781. int GetMaximumScale ( );
  782. void PutMaximumScale ( int _val );
  783. int GetMinimumScale ( );
  784. void PutMinimumScale ( int _val );
  785. float GetUpdateInterval ( );
  786. void PutUpdateInterval ( float _val );
  787. enum DisplayTypeConstants GetDisplayType ( );
  788. void PutDisplayType ( enum DisplayTypeConstants _val );
  789. VARIANT_BOOL GetManualUpdate ( );
  790. void PutManualUpdate ( VARIANT_BOOL _val );
  791. _bstr_t GetGraphTitle ( );
  792. void PutGraphTitle ( _bstr_t _val );
  793. _bstr_t GetYAxisLabel ( );
  794. void PutYAxisLabel ( _bstr_t _val );
  795. ICountersPtr GetCounters ( );
  796. void PutCounters ( struct ICounters * _val );
  797. OLE_COLOR GetBackColorCtl ( );
  798. void PutBackColorCtl ( OLE_COLOR _val );
  799. _bstr_t GetLogFileName ( );
  800. void PutLogFileName ( _bstr_t _val );
  801. DATE GetLogViewStart ( );
  802. void PutLogViewStart ( DATE _val );
  803. DATE GetLogViewStop ( );
  804. void PutLogViewStop ( DATE _val );
  805. OLE_COLOR GetGridColor ( );
  806. void PutGridColor ( OLE_COLOR _val );
  807. OLE_COLOR GetTimeBarColor ( );
  808. void PutTimeBarColor ( OLE_COLOR _val );
  809. VARIANT_BOOL GetHighlight ( );
  810. void PutHighlight ( VARIANT_BOOL _val );
  811. VARIANT_BOOL GetShowToolbar ( );
  812. void PutShowToolbar ( VARIANT_BOOL _val );
  813. VARIANT_BOOL GetReadOnly ( );
  814. void PutReadOnly ( VARIANT_BOOL _val );
  815. enum ReportValueTypeConstants GetReportValueType ( );
  816. void PutReportValueType ( enum ReportValueTypeConstants _val );
  817. VARIANT_BOOL GetMonitorDuplicateInstances ( );
  818. void PutMonitorDuplicateInstances ( VARIANT_BOOL _val );
  819. };
  820. struct __declspec(uuid("ee660ea0-4abd-11cf-943a-008029004347"))
  821. ISystemMonitorEvents : IUnknown
  822. {
  823. //
  824. // Raw methods provided by interface
  825. //
  826. virtual void __stdcall OnCounterSelected (
  827. int index ) = 0;
  828. virtual void __stdcall OnCounterAdded (
  829. int index ) = 0;
  830. virtual void __stdcall OnCounterDeleted (
  831. int index ) = 0;
  832. virtual void __stdcall OnSampleCollected ( ) = 0;
  833. virtual void __stdcall OnDblClick (
  834. int index ) = 0;
  835. };
  836. struct __declspec(uuid("84979930-4ab3-11cf-943a-008029004347"))
  837. DISystemMonitorEvents : IDispatch
  838. {
  839. //
  840. // Wrapper methods for error-handling
  841. //
  842. // Methods:
  843. HRESULT OnCounterSelected (
  844. int iIndex );
  845. HRESULT OnCounterAdded (
  846. int iIndex );
  847. HRESULT OnCounterDeleted (
  848. int iIndex );
  849. HRESULT OnSampleCollected ( );
  850. HRESULT OnDblClick (
  851. int index );
  852. };
  853. struct __declspec(uuid("c4d2d8e0-d1dd-11ce-940f-008029004347"))
  854. SystemMonitor;
  855. // [ default ] dispinterface DISystemMonitor
  856. // interface ISystemMonitor
  857. // [ default, source ] dispinterface DISystemMonitorEvents
  858. struct __declspec(uuid("c4d2d8e0-d1dd-11ce-940f-008029004348"))
  859. CounterItem;
  860. // [ default ] dispinterface DICounterItem
  861. // interface ICounterItem
  862. struct __declspec(uuid("b2b066d2-2aac-11cf-942f-008029004347"))
  863. Counters;
  864. // [ default ] interface ICounters
  865. //
  866. // Wrapper method implementations
  867. //
  868. #include "sysmon.tli"
  869. } // namespace SystemMonitor
  870. #pragma pack(pop)