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.

50 lines
796 B

  1. /*++
  2. Copyright (C) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. writer.h
  5. Abstract:
  6. Volume SnapShot Writer for WMI
  7. History:
  8. a-shawnb 06-Nov-00 Genesis
  9. --*/
  10. #ifndef _WBEM_WRITER_H_
  11. #define _WBEM_WRITER_H_
  12. #include "precomp.h"
  13. #include "vss.h"
  14. #include "vswriter.h"
  15. #include <lockst.h>
  16. class CWbemVssWriter : public CVssWriter
  17. {
  18. public:
  19. CWbemVssWriter();
  20. ~CWbemVssWriter();
  21. HRESULT Initialize();
  22. virtual bool STDMETHODCALLTYPE OnIdentify(IN IVssCreateWriterMetadata *pMetadata);
  23. virtual bool STDMETHODCALLTYPE OnPrepareSnapshot();
  24. virtual bool STDMETHODCALLTYPE OnFreeze();
  25. virtual bool STDMETHODCALLTYPE OnThaw();
  26. virtual bool STDMETHODCALLTYPE OnAbort();
  27. private:
  28. IWbemBackupRestoreEx* m_pBackupRestore;
  29. CriticalSection m_Lock;
  30. };
  31. #endif // _WBEM_WRITER_H_