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.

133 lines
3.5 KiB

  1. //==========================================================================//
  2. // Constants //
  3. //==========================================================================//
  4. #define xSystemMargin (xScrollWidth)
  5. #define xObjectMargin (2 * xScrollWidth)
  6. #define xCounterMargin (3 * xScrollWidth)
  7. #define xColumnMargin (xScrollWidth)
  8. #define RightHandMargin xObjectMargin
  9. #define ValueMargin(pReport) \
  10. (4 * xScrollWidth + pReport->xMaxCounterWidth)
  11. #define iDefaultReportIntervalSecs 5
  12. BOOL ReportInitializeApplication (void) ;
  13. HWND CreateReportWindow (HWND hWndParent) ;
  14. BOOL ReportInsertLine (HWND hWnd, PLINE pLine) ;
  15. void SetReportPositions (HDC hDC, PREPORT pReport) ;
  16. #if 0
  17. PREPORT ReportData (HWND hWndReport) ;
  18. #endif
  19. #define ReportData(hWndReport) \
  20. (&Report)
  21. void SetReportTimer (PREPORT pReport) ;
  22. void PlaybackReport (HWND hWndReport) ;
  23. BOOL CurrentReportItem (HWND hWndReport) ;
  24. BOOL AddReport (HWND hWndParent) ;
  25. void UpdateReportData (HWND hWndReport);
  26. void ReportTimer (HWND hWnd, BOOL bForce) ;
  27. BOOL ReportRefresh (HWND hWnd) ;
  28. BOOL ToggleReportRefresh (HWND hWnd) ;
  29. BOOL SaveReport (HWND hWndReport, HANDLE hInputFile, BOOL bGetFileName) ;
  30. BOOL OpenReport (HWND hWndReport,
  31. HANDLE hFile,
  32. DWORD dwMajorVersion,
  33. DWORD dwMinorVersion,
  34. BOOL bReportFile) ;
  35. BOOL PrintReportDisplay (HDC hDC,
  36. PREPORT pReport) ;
  37. void ResetReport (HWND hWndReport) ;
  38. void ResetReportView (HWND hWndReport) ;
  39. void ClearReportDisplay (HWND hWndReport) ;
  40. BOOL ReportDeleteItem (HWND hWnd) ;
  41. BOOL PrintReport (HWND hWndParent,
  42. HWND hWndReport) ;
  43. void ExportReport (void) ;
  44. void ReportAddAction (PREPORT pReport) ;
  45. void ReportSystemRect (PREPORT pReport,
  46. PSYSTEMGROUP pSystemGroup,
  47. LPRECT lpRect) ;
  48. void ReportObjectRect (PREPORT pReport,
  49. POBJECTGROUP pObjectGroup,
  50. LPRECT lpRect) ;
  51. void ReportCounterRect (PREPORT pReport,
  52. PCOUNTERGROUP pCounterGroup,
  53. LPRECT lpRect) ;
  54. void ReportColumnRect (PREPORT pReport,
  55. PCOLUMNGROUP pColumnGroup,
  56. LPRECT lpRect) ;
  57. void ReportLineValueRect (PREPORT pReport,
  58. PLINE pLine,
  59. LPRECT lpRect) ;
  60. BOOL OnReportLButtonDown (HWND hWnd,
  61. WORD xPos,
  62. WORD yPos) ;
  63. PCOLUMNGROUP GetColumnGroup (PREPORT pReport,
  64. POBJECTGROUP pObjectGroup,
  65. PLINE pLine) ;
  66. void DrawReportValue (HDC hDC, PREPORT pReport, PLINE pLine) ;
  67. void ColumnGroupRemove (PCOLUMNGROUP pColumnGroupFirst) ;
  68. BOOL LineCounterRemove (PCOUNTERGROUP pCGroup,
  69. PLINE pLineRemove) ;
  70. void ClearReportTimer (PREPORT pReport) ;
  71. PSYSTEMGROUP GetSystemGroup (PREPORT pReport,
  72. LPTSTR lpszSystemName) ;
  73. POBJECTGROUP GetObjectGroup (PSYSTEMGROUP pSystemGroup,
  74. LPTSTR lpszObjectName) ;
  75. PCOUNTERGROUP GetCounterGroup (POBJECTGROUP pObjectGroup,
  76. DWORD dwCounterIndex,
  77. BOOL *pbCounterGroupCreated,
  78. LPTSTR pCounterName,
  79. BOOL bCreateNewGroup) ;
  80.