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.

111 lines
2.5 KiB

  1. #define LOG_ENTRY_NOT_FOUND (-1)
  2. #define szDefaultLogDirectory TEXT("")
  3. #define szDefaultLogFileName TEXT("perfmon.log")
  4. #define iDefaultLogIntervalSecs 15
  5. #define IsDataIndex(pIndex) \
  6. (pIndex->uFlags & LogFileIndexData)
  7. #define IsBookmarkIndex(pIndex) \
  8. (pIndex->uFlags & LogFileIndexBookmark)
  9. #define IsCounterNameIndex(pIndex) \
  10. (pIndex->uFlags & LogFileIndexCounterName)
  11. //==========================================================================//
  12. // Exported Functions //
  13. //==========================================================================//
  14. #if 0
  15. PLOG LogData (HWND hWndLog) ;
  16. #endif
  17. #define LogData(hWndLog) \
  18. (&Log)
  19. HWND CreateLogWindow (HWND hWndParent) ;
  20. LRESULT APIENTRY LogWndProc (HWND hWnd,
  21. WORD wMsg,
  22. DWORD wParam,
  23. LONG lParam) ;
  24. BOOL LogInitializeApplication (void) ;
  25. void UpdateLogDisplay (HWND hWnd) ;
  26. BOOL StartLog (HWND hWnd, PLOG pLog, BOOL bSameFile) ;
  27. BOOL CloseLog (HWND hWnd, PLOG pLog) ;
  28. BOOL LogAddEntry (HWND hWndLog,
  29. LPTSTR lpszComputer,
  30. LPTSTR lpszObject,
  31. DWORD ObjectTitleIndex,
  32. BOOL bGetObjectTitleIndex) ;
  33. void SetLogTimer (HWND hWnd,
  34. int iIntervalSecs) ;
  35. BOOL LogRefresh (HWND hWnd) ;
  36. BOOL ToggleLogRefresh (HWND hWnd) ;
  37. void LogTimer (HWND hWnd, BOOL bForce) ;
  38. void ReLog (HWND hWndLog, BOOL bSameFile) ;
  39. BOOL OpenLog (HWND hWndLog,
  40. HANDLE hFile,
  41. DWORD dwMajorVersion,
  42. DWORD dwMinorVersion,
  43. BOOL bLogFile) ;
  44. BOOL LogCollecting (HWND hWndLog) ;
  45. int LogFileSize (HWND hWndLog) ;
  46. BOOL LogWriteBookmark (HWND hWndLog,
  47. LPCTSTR lpszComment) ;
  48. DWORD LogFindEntry (LPTSTR lpszComputer, DWORD ObjectTitleIndex) ;
  49. BOOL ResetLog (HWND hWndLog) ;
  50. void ResetLogView (HWND hWndLog) ;
  51. BOOL LogDeleteEntry (HWND hWndLog) ;
  52. BOOL AnyLogLine (void) ;
  53. BOOL SaveLog (HWND hWndLog, HANDLE hInputFile, BOOL bGetFileName) ;
  54. void ExportLog (void) ;
  55. int CreateLogFile (PLOG pLog, BOOL bCreateFile, BOOL bSameFile) ;
  56. BOOL LogWriteCounterName (HWND hWnd,
  57. PPERFSYSTEM pSystem,
  58. PLOG pLog,
  59. LPTSTR pCounterName,
  60. long sizeMatched,
  61. long sizeOfData,
  62. BOOL bBaseCounterName) ;
  63. void LogWriteSystemCounterNames (HWND hWnd, PLOG pLog) ;
  64.