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.

67 lines
1.4 KiB

  1. #ifndef __APPVERIFIER_VIEWLOG_H_
  2. #define __APPVERIFIER_VIEWLOG_H_
  3. extern TCHAR g_szSingleLogFile[MAX_PATH];
  4. class CProcessLogEntry {
  5. public:
  6. CString strShimName;
  7. DWORD dwLogNum;
  8. CString strLogTitle;
  9. CString strLogDescription;
  10. CString strLogURL;
  11. DWORD dwOccurences;
  12. CStringArray arrProblems;
  13. HTREEITEM hTreeItem;
  14. CProcessLogEntry * pNext;
  15. CProcessLogEntry(void) :
  16. pNext(NULL),
  17. dwLogNum(0),
  18. dwOccurences(0) {}
  19. ~CProcessLogEntry() {
  20. if (pNext) {
  21. delete pNext;
  22. pNext = NULL;
  23. }
  24. }
  25. };
  26. class CSessionLogEntry {
  27. public:
  28. CString strExeName; // just name and ext
  29. CString strExePath; // full path to exe
  30. SYSTEMTIME RunTime;
  31. CString strLogPath; // full path to log
  32. HTREEITEM hTreeItem;
  33. CProcessLogEntry * pProcessLog;
  34. CSessionLogEntry * pNext;
  35. CSessionLogEntry(void) :
  36. pNext(NULL),
  37. pProcessLog(NULL) {
  38. ZeroMemory(&RunTime, sizeof(SYSTEMTIME));
  39. }
  40. ~CSessionLogEntry() {
  41. if (pProcessLog) {
  42. delete pProcessLog;
  43. pProcessLog = NULL;
  44. }
  45. if (pNext) {
  46. delete pNext;
  47. pNext = NULL;
  48. }
  49. }
  50. };
  51. LRESULT CALLBACK DlgViewLog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  52. #endif // #ifndef __APPVERIFIER_VIEWLOG_H_