Windows NT 4.0 source code leak
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.

132 lines
3.4 KiB

4 years ago
  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 ReportTimer (HWND hWnd, BOOL bForce) ;
  26. BOOL ReportRefresh (HWND hWnd) ;
  27. BOOL ToggleReportRefresh (HWND hWnd) ;
  28. BOOL SaveReport (HWND hWndReport, HANDLE hInputFile, BOOL bGetFileName) ;
  29. BOOL OpenReport (HWND hWndReport,
  30. HANDLE hFile,
  31. DWORD dwMajorVersion,
  32. DWORD dwMinorVersion,
  33. BOOL bReportFile) ;
  34. BOOL PrintReportDisplay (HDC hDC,
  35. PREPORT pReport) ;
  36. void ResetReport (HWND hWndReport) ;
  37. void ResetReportView (HWND hWndReport) ;
  38. void ClearReportDisplay (HWND hWndReport) ;
  39. BOOL ReportDeleteItem (HWND hWnd) ;
  40. BOOL PrintReport (HWND hWndParent,
  41. HWND hWndReport) ;
  42. void ExportReport (void) ;
  43. void ReportAddAction (PREPORT pReport) ;
  44. void ReportSystemRect (PREPORT pReport,
  45. PSYSTEMGROUP pSystemGroup,
  46. LPRECT lpRect) ;
  47. void ReportObjectRect (PREPORT pReport,
  48. POBJECTGROUP pObjectGroup,
  49. LPRECT lpRect) ;
  50. void ReportCounterRect (PREPORT pReport,
  51. PCOUNTERGROUP pCounterGroup,
  52. LPRECT lpRect) ;
  53. void ReportColumnRect (PREPORT pReport,
  54. PCOLUMNGROUP pColumnGroup,
  55. LPRECT lpRect) ;
  56. void ReportLineValueRect (PREPORT pReport,
  57. PLINE pLine,
  58. LPRECT lpRect) ;
  59. BOOL OnReportLButtonDown (HWND hWnd,
  60. WORD xPos,
  61. WORD yPos) ;
  62. PCOLUMNGROUP GetColumnGroup (PREPORT pReport,
  63. POBJECTGROUP pObjectGroup,
  64. PLINE pLine) ;
  65. void DrawReportValue (HDC hDC, PREPORT pReport, PLINE pLine) ;
  66. void ColumnGroupRemove (PCOLUMNGROUP pColumnGroupFirst) ;
  67. BOOL LineCounterRemove (PPLINE ppLineFirst,
  68. PLINE pLineRemove) ;
  69. void ClearReportTimer (PREPORT pReport) ;
  70. PSYSTEMGROUP GetSystemGroup (PREPORT pReport,
  71. LPTSTR lpszSystemName) ;
  72. POBJECTGROUP GetObjectGroup (PSYSTEMGROUP pSystemGroup,
  73. LPTSTR lpszObjectName) ;
  74. PCOUNTERGROUP GetCounterGroup (POBJECTGROUP pObjectGroup,
  75. DWORD dwCounterIndex,
  76. BOOL *pbCounterGroupCreated,
  77. LPTSTR pCounterName) ;