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.

53 lines
1.3 KiB

  1. //
  2. // ATL debugging support turned on at debug version
  3. // BUGBUG: the ATL thunking support is not enable yet in IA64
  4. // When this will be enabled then enable it here also!
  5. //
  6. #ifdef _DEBUG
  7. #ifdef _M_IX86
  8. #define _ATL_DEBUG_INTERFACES
  9. #define _ATL_DEBUG_QI
  10. #define _ATL_DEBUG_REFCOUNT
  11. #endif
  12. #endif // _DEBUG
  13. class CTestVssWriter : public CVssWriter
  14. {
  15. public:
  16. CTestVssWriter(LONG lWait) : m_lWait(lWait)
  17. {
  18. }
  19. void Initialize();
  20. virtual bool STDMETHODCALLTYPE OnIdentify(IN IVssCreateWriterMetadata *pMetadata);
  21. virtual bool STDMETHODCALLTYPE OnPrepareBackup(IN IVssWriterComponents *pComponent);
  22. virtual bool STDMETHODCALLTYPE OnPrepareSnapshot();
  23. virtual bool STDMETHODCALLTYPE OnFreeze();
  24. virtual bool STDMETHODCALLTYPE OnThaw();
  25. virtual bool STDMETHODCALLTYPE OnAbort();
  26. virtual bool STDMETHODCALLTYPE OnBackupComplete(IN IVssWriterComponents *pComponent);
  27. virtual bool STDMETHODCALLTYPE OnPreRestore(IN IVssWriterComponents *pComponent);
  28. virtual bool STDMETHODCALLTYPE OnPostRestore(IN IVssWriterComponents *pComponent);
  29. private:
  30. enum
  31. {
  32. x_maskWaitGatherWriterMetadata = 1,
  33. x_maskWaitPrepareBackup = 2,
  34. x_maskWaitBackupComplete=4,
  35. x_maskWaitPostRestore=8
  36. };
  37. LONG m_lWait;
  38. };