Leaked source code of windows server 2003
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.

80 lines
1.9 KiB

  1. #ifndef __APPVERIFIER_VIEWLOG_H_
  2. #define __APPVERIFIER_VIEWLOG_H_
  3. extern TCHAR g_szSingleLogFile[MAX_PATH];
  4. class CProcessLogEntry;
  5. class CProcessLogInstance {
  6. public:
  7. wstring strText;
  8. VLOG_LEVEL eLevel;
  9. wstring strModule;
  10. DWORD dwOffset;
  11. DWORD dwProcessLogEntry; // parent index pointer
  12. DWORD dwNumRepeats;
  13. BOOL bDuplicate; // is this a dupe of a previous entry (so no need to display)?
  14. CProcessLogInstance(void) :
  15. dwOffset(0),
  16. eLevel(VLOG_LEVEL_ERROR),
  17. dwProcessLogEntry(0),
  18. dwNumRepeats(1),
  19. bDuplicate(FALSE) {}
  20. };
  21. typedef vector<CProcessLogInstance> CProcessLogInstanceArray;
  22. typedef vector<DWORD> CIndexArray;
  23. class CProcessLogEntry {
  24. public:
  25. wstring strShimName;
  26. DWORD dwLogNum;
  27. wstring strLogTitle;
  28. wstring strLogDescription;
  29. wstring strLogURL;
  30. DWORD dwOccurences;
  31. CIndexArray arrLogInstances; // array indexes of instances
  32. HTREEITEM hTreeItem;
  33. VLOG_LEVEL eLevel;
  34. CProcessLogEntry(void) :
  35. dwLogNum(0),
  36. dwOccurences(0),
  37. eLevel(VLOG_LEVEL_INFO) {}
  38. };
  39. typedef vector<CProcessLogEntry> CProcessLogEntryArray;
  40. class CSessionLogEntry {
  41. public:
  42. wstring strExeName; // just name and ext
  43. wstring strExePath; // full path to exe
  44. SYSTEMTIME RunTime;
  45. wstring strLogPath; // full path to log
  46. HTREEITEM hTreeItem;
  47. CProcessLogEntryArray arrProcessLogEntries;
  48. CProcessLogInstanceArray arrProcessLogInstances;
  49. CSessionLogEntry(void) :
  50. hTreeItem(NULL)
  51. {
  52. ZeroMemory(&RunTime, sizeof(SYSTEMTIME));
  53. }
  54. };
  55. typedef vector<CSessionLogEntry> CSessionLogEntryArray;
  56. INT_PTR CALLBACK DlgViewLog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  57. #endif // #ifndef __APPVERIFIER_VIEWLOG_H_