windows-nt/Source/XPSP1/NT/sdktools/perfmon/report.h
2020-09-26 16:20:57 +08:00

134 lines
3.5 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//==========================================================================//
// Constants //
//==========================================================================//
#define xSystemMargin (xScrollWidth)
#define xObjectMargin (2 * xScrollWidth)
#define xCounterMargin (3 * xScrollWidth)
#define xColumnMargin (xScrollWidth)
#define RightHandMargin xObjectMargin
#define ValueMargin(pReport) \
(4 * xScrollWidth + pReport->xMaxCounterWidth)
#define iDefaultReportIntervalSecs 5
BOOL ReportInitializeApplication (void) ;
HWND CreateReportWindow (HWND hWndParent) ;
BOOL ReportInsertLine (HWND hWnd, PLINE pLine) ;
void SetReportPositions (HDC hDC, PREPORT pReport) ;
#if 0
PREPORT ReportData (HWND hWndReport) ;
#endif
#define ReportData(hWndReport) \
(&Report)
void SetReportTimer (PREPORT pReport) ;
void PlaybackReport (HWND hWndReport) ;
BOOL CurrentReportItem (HWND hWndReport) ;
BOOL AddReport (HWND hWndParent) ;
void UpdateReportData (HWND hWndReport);
void ReportTimer (HWND hWnd, BOOL bForce) ;
BOOL ReportRefresh (HWND hWnd) ;
BOOL ToggleReportRefresh (HWND hWnd) ;
BOOL SaveReport (HWND hWndReport, HANDLE hInputFile, BOOL bGetFileName) ;
BOOL OpenReport (HWND hWndReport,
HANDLE hFile,
DWORD dwMajorVersion,
DWORD dwMinorVersion,
BOOL bReportFile) ;
BOOL PrintReportDisplay (HDC hDC,
PREPORT pReport) ;
void ResetReport (HWND hWndReport) ;
void ResetReportView (HWND hWndReport) ;
void ClearReportDisplay (HWND hWndReport) ;
BOOL ReportDeleteItem (HWND hWnd) ;
BOOL PrintReport (HWND hWndParent,
HWND hWndReport) ;
void ExportReport (void) ;
void ReportAddAction (PREPORT pReport) ;
void ReportSystemRect (PREPORT pReport,
PSYSTEMGROUP pSystemGroup,
LPRECT lpRect) ;
void ReportObjectRect (PREPORT pReport,
POBJECTGROUP pObjectGroup,
LPRECT lpRect) ;
void ReportCounterRect (PREPORT pReport,
PCOUNTERGROUP pCounterGroup,
LPRECT lpRect) ;
void ReportColumnRect (PREPORT pReport,
PCOLUMNGROUP pColumnGroup,
LPRECT lpRect) ;
void ReportLineValueRect (PREPORT pReport,
PLINE pLine,
LPRECT lpRect) ;
BOOL OnReportLButtonDown (HWND hWnd,
WORD xPos,
WORD yPos) ;
PCOLUMNGROUP GetColumnGroup (PREPORT pReport,
POBJECTGROUP pObjectGroup,
PLINE pLine) ;
void DrawReportValue (HDC hDC, PREPORT pReport, PLINE pLine) ;
void ColumnGroupRemove (PCOLUMNGROUP pColumnGroupFirst) ;
BOOL LineCounterRemove (PCOUNTERGROUP pCGroup,
PLINE pLineRemove) ;
void ClearReportTimer (PREPORT pReport) ;
PSYSTEMGROUP GetSystemGroup (PREPORT pReport,
LPTSTR lpszSystemName) ;
POBJECTGROUP GetObjectGroup (PSYSTEMGROUP pSystemGroup,
LPTSTR lpszObjectName) ;
PCOUNTERGROUP GetCounterGroup (POBJECTGROUP pObjectGroup,
DWORD dwCounterIndex,
BOOL *pbCounterGroupCreated,
LPTSTR pCounterName,
BOOL bCreateNewGroup) ;