Source code of Windows XP (NT5)
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.

92 lines
2.3 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. graph.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. #ifndef _GRAPH_H_
  9. #define _GRAPH_H_
  10. #include <pdh.h>
  11. #include "scale.h"
  12. #include "stepper.h"
  13. #include "cntrtree.h"
  14. #define MAX_GRAPH_SAMPLES 100
  15. #define MAX_GRAPH_ITEMS 8
  16. #define LINE_GRAPH ((DWORD)sysmonLineGraph)
  17. #define BAR_GRAPH ((DWORD)sysmonHistogram)
  18. #define REPORT_GRAPH ((DWORD)sysmonReport)
  19. #define NULL_COLOR 0xffffffff
  20. #define NULL_APPEARANCE 0xffffffff
  21. #define NULL_BORDERSTYLE 0xffffffff
  22. #define NULL_FONT 0xffffffff
  23. typedef struct _graph_options {
  24. LPTSTR pszYaxisTitle ;
  25. LPTSTR pszGraphTitle ;
  26. LPTSTR pszLogFile ;
  27. INT iVertMax ;
  28. INT iVertMin ;
  29. INT iDisplayFilter ;
  30. INT iDisplayType ;
  31. INT iAppearance;
  32. INT iBorderStyle;
  33. INT iReportValueType;
  34. INT iDataSourceType;
  35. OLE_COLOR clrBackCtl ;
  36. OLE_COLOR clrFore ;
  37. OLE_COLOR clrBackPlot ;
  38. OLE_COLOR clrGrid ;
  39. OLE_COLOR clrTimeBar ;
  40. FLOAT fUpdateInterval ;
  41. BOOL bLegendChecked ;
  42. BOOL bToolbarChecked;
  43. BOOL bLabelsChecked;
  44. BOOL bVertGridChecked ;
  45. BOOL bHorzGridChecked ;
  46. BOOL bValueBarChecked ;
  47. BOOL bManualUpdate;
  48. BOOL bHighlight;
  49. BOOL bReadOnly;
  50. BOOL bMonitorDuplicateInstances;
  51. BOOL bAmbientFont;
  52. } GRAPH_OPTIONS, *PGRAPH_OPTIONS;
  53. typedef struct _hist_control {
  54. BOOL bLogSource;
  55. INT nMaxSamples;
  56. INT nSamples;
  57. INT iCurrent;
  58. INT nBacklog;
  59. } HIST_CONTROL, *PHIST_CONTROL;
  60. //All graph data
  61. typedef struct _GRAPHDATA {
  62. GRAPH_OPTIONS Options;
  63. HIST_CONTROL History;
  64. CStepper TimeStepper;
  65. CStepper LogViewStartStepper; // Set in smonctrl.cpp, read in grphdsp.cpp
  66. CStepper LogViewStopStepper; // Set in smonctrl.cpp, read in grphdsp.cpp
  67. LONGLONG LogViewTempStart; // MIN_TIME_VALUE means LogViewStartStepper invalid
  68. LONGLONG LogViewTempStop; // MAX_TIME_VALUE means LogViewStopStepper invalid
  69. CGraphScale Scale;
  70. HQUERY hQuery;
  71. class CCounterTree CounterTree;
  72. } GRAPHDATA, *PGRAPHDATA;
  73. void UpdateGraphCounterValues(PGRAPHDATA, BOOL* );
  74. #endif