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.

74 lines
1.8 KiB

  1. /******************************************************************************
  2. *
  3. * Copyright (c) 2000 Microsoft Corporation
  4. *
  5. * Module Name:
  6. * changelog.h
  7. *
  8. * Abstract:
  9. * CChangeLogEnum class definition
  10. *
  11. * Revision History:
  12. * Brijesh Krishnaswami (brijeshk) 03/17/2000
  13. * created
  14. *
  15. *****************************************************************************/
  16. #ifndef _CHANGELOG_H_
  17. #define _CHANGELOG_H_
  18. #include "respoint.h"
  19. #include "utils.h"
  20. // restore point enumeration class
  21. class CRestorePointEnum {
  22. public:
  23. CRestorePointEnum();
  24. CRestorePointEnum(LPWSTR pszDrive, BOOL fForward, BOOL fSkipLast);
  25. ~CRestorePointEnum();
  26. DWORD FindFirstRestorePoint(CRestorePoint&);
  27. DWORD FindNextRestorePoint(CRestorePoint&);
  28. DWORD FindClose();
  29. private:
  30. CFindFile FindFile;
  31. WCHAR m_szDrive[MAX_PATH];
  32. BOOL m_fForward;
  33. BOOL m_fSkipLast;
  34. CRestorePoint *m_pCurrentRp;
  35. };
  36. // change log enumeration class
  37. class CChangeLogEntryEnum {
  38. private:
  39. BOOL m_fForward;
  40. CRestorePointEnum * m_pRestorePointEnum;
  41. CRestorePoint m_RPTemp;
  42. DWORD m_dwTargetRPNum;
  43. CLock m_DSLock;
  44. BOOL m_fHaveLock;
  45. BOOL m_fLockInit;
  46. BOOL m_fIncludeCurRP;
  47. WCHAR m_szDrive[MAX_PATH];
  48. public:
  49. CChangeLogEntryEnum();
  50. CChangeLogEntryEnum(LPWSTR pszDrive, BOOL fForward, DWORD dwRPNum, BOOL fIncludeCurRP);
  51. ~CChangeLogEntryEnum();
  52. DWORD WINAPI FindFirstChangeLogEntry(CChangeLogEntry&);
  53. DWORD WINAPI FindNextChangeLogEntry(CChangeLogEntry&);
  54. DWORD WINAPI FindClose();
  55. };
  56. DWORD WINAPI GetCurrentRestorePoint(CRestorePoint& rp);
  57. #endif