|
|
1.1 root 1:
2: #define LOG_ENTRY_NOT_FOUND (-1)
3:
4: #define szDefaultLogDirectory TEXT("")
5: #define szDefaultLogFileName TEXT("perfmon.log")
6:
7: #define iDefaultLogIntervalSecs 5
8:
9:
10: #define IsDataIndex(pIndex) \
11: (pIndex->uFlags & LogFileIndexData)
12:
13:
14: #define IsBookmarkIndex(pIndex) \
15: (pIndex->uFlags & LogFileIndexBookmark)
16:
17: #define IsCounterNameIndex(pIndex) \
18: (pIndex->uFlags & LogFileIndexCounterName)
19:
20:
21: //==========================================================================//
22: // Exported Functions //
23: //==========================================================================//
24:
25: #if 0
26: PLOG LogData (HWND hWndLog) ;
27: #endif
28: #define LogData(hWndLog) \
29: (&Log)
30:
31: HWND CreateLogWindow (HWND hWndParent) ;
32:
33: LRESULT APIENTRY LogWndProc (HWND hWnd,
34: WORD wMsg,
35: DWORD wParam,
36: LONG lParam) ;
37:
38: BOOL LogInitializeApplication (void) ;
39:
40:
41: void UpdateLogDisplay (HWND hWnd) ;
42:
43:
44: BOOL StartLog (HWND hWnd, PLOG pLog, BOOL bSameFile) ;
45:
46: BOOL CloseLog (HWND hWnd, PLOG pLog) ;
47:
48:
49: BOOL LogAddEntry (HWND hWndLog,
50: LPTSTR lpszComputer,
51: LPTSTR lpszObject,
52: DWORD ObjectTitleIndex) ;
53:
54:
55: void SetLogTimer (HWND hWnd,
56: int iIntervalSecs) ;
57:
58:
59:
60: BOOL LogRefresh (HWND hWnd) ;
61: BOOL ToggleLogRefresh (HWND hWnd) ;
62:
63:
64: void LogTimer (HWND hWnd, BOOL bForce) ;
65:
66:
67: void ReLog (HWND hWndLog, BOOL bSameFile) ;
68:
69:
70: BOOL OpenLog (HWND hWndLog,
71: HANDLE hFile,
72: DWORD dwMajorVersion,
73: DWORD dwMinorVersion,
74: BOOL bLogFile) ;
75:
76:
77: BOOL LogCollecting (HWND hWndLog) ;
78:
79:
80: int LogFileSize (HWND hWndLog) ;
81:
82:
83:
84: BOOL LogWriteBookmark (HWND hWndLog,
85: LPCTSTR lpszComment) ;
86:
87:
88: DWORD LogFindEntry (LPTSTR lpszComputer, DWORD ObjectTitleIndex) ;
89:
90: BOOL ResetLog (HWND hWndLog) ;
91: void ResetLogView (HWND hWndLog) ;
92: BOOL LogDeleteEntry (HWND hWndLog) ;
93: BOOL AnyLogLine (void) ;
94:
95: BOOL SaveLog (HWND hWndLog, HANDLE hInputFile, BOOL bGetFileName) ;
96:
97: void ExportLog (void) ;
98:
99: int CreateLogFile (PLOG pLog, BOOL bCreateFile, BOOL bSameFile) ;
100:
101: BOOL LogWriteCounterName (HWND hWnd,
102: PPERFSYSTEM pSystem,
103: PLOG pLog,
104: LPTSTR pCounterName,
105: long sizeMatched,
106: long sizeOfData,
107: BOOL bBaseCounterName) ;
108:
109: void LogWriteSystemCounterNames (HWND hWnd, PLOG pLog) ;
110:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.