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
944 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 <sync.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. CCritSec m_Lock;
  30. HRESULT STDMETHODCALLTYPE LogFailure(HRESULT hr);
  31. HRESULT m_hResFailure;
  32. LONG m_FailurePos;
  33. };
  34. #endif // _WBEM_WRITER_H_