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.

75 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. writer.h
  5. Abstract:
  6. definitions for test writer
  7. Brian Berkowitz [brianb] 06/02/2000
  8. TBD:
  9. Revision History:
  10. Name Date Comments
  11. brianb 06/02/2000 Created
  12. mikejohn 09/19/2000 176860: Added calling convention methods where missing
  13. --*/
  14. class CVsWriterTest :
  15. public IVsTstRunningTest,
  16. public CVssWriter,
  17. public CVsTstClientLogger
  18. {
  19. public:
  20. HRESULT RunTest
  21. (
  22. CVsTstINIConfig *pConfig,
  23. CVsTstClientMsg *pMsg,
  24. CVsTstParams *pParams
  25. );
  26. HRESULT ShutdownTest(VSTST_SHUTDOWN_REASON reason)
  27. {
  28. UNREFERENCED_PARAMETER(reason);
  29. VSTST_ASSERT(FALSE && "shouldn't get here");
  30. return S_OK;
  31. }
  32. virtual bool STDMETHODCALLTYPE OnIdentify(IN IVssCreateWriterMetadata *pMetadata);
  33. virtual bool STDMETHODCALLTYPE OnPrepareBackup(IN IVssWriterComponents *pComponent);
  34. virtual bool STDMETHODCALLTYPE OnPrepareSnapshot();
  35. virtual bool STDMETHODCALLTYPE OnFreeze();
  36. virtual bool STDMETHODCALLTYPE OnThaw();
  37. virtual bool STDMETHODCALLTYPE OnAbort();
  38. virtual bool STDMETHODCALLTYPE OnBackupComplete(IN IVssWriterComponents *pComponent);
  39. virtual bool STDMETHODCALLTYPE OnRestore(IN IVssWriterComponents *pComponent);
  40. private:
  41. bool Initialize();
  42. // configuration file
  43. CVsTstINIConfig *m_pConfig;
  44. // command line parameters
  45. CVsTstParams *m_pParams;
  46. };