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.

34 lines
1.0 KiB

  1. // RegDiffFile.h: interface for the CRegDiffFile class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_REGDIFFFILE_H__898750DA_897E_4F8A_BD51_899EC068C300__INCLUDED_)
  5. #define AFX_REGDIFFFILE_H__898750DA_897E_4F8A_BD51_899EC068C300__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "RegFile.h"
  10. class CRegDiffFile : public CRegFile
  11. {
  12. public:
  13. virtual bool NeedStorageOfValueData();
  14. void DeleteFromRegistry(CRegDataItemPtr pDataItem, CRegDiffFile& UndoFile);
  15. void AddToRegistry(CRegDataItemPtr pDataItem, CRegDiffFile& UndoFile);
  16. BOOL ApplyToRegistry(LPCTSTR UndoFileName = NULL);
  17. CRegDiffFile();
  18. virtual ~CRegDiffFile();
  19. virtual void WriteDataItem(enum SectionType t, CRegDataItemPtr r);
  20. virtual void WriteStoredSectionsToFile();
  21. protected:
  22. CSmartBuffer<CRegDataItemPtr> m_AddSection;
  23. CSmartBuffer<CRegDataItemPtr> m_DelSection;
  24. };
  25. #endif // !defined(AFX_REGDIFFFILE_H__898750DA_897E_4F8A_BD51_899EC068C300__INCLUDED_)