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.

77 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Abstract:
  4. @doc
  5. @module psub.h | Declaration of the permanent subscriber
  6. @end
  7. Author:
  8. Adi Oltean [aoltean] 08/18/1999
  9. TBD:
  10. Add comments.
  11. Revision History:
  12. Name Date Comments
  13. aoltean 08/18/1999 Created
  14. mikejohn 09/18/2000 176860: Added calling convention methods where missing
  15. --*/
  16. #ifndef __VSS_PSUB_WRITER_H_
  17. #define __VSS_PSUB_WRITER_H_
  18. #ifdef _DEBUG
  19. #define _ATL_DEBUG_INTERFACES
  20. #define _ATL_DEBUG_QI
  21. #define _ATL_DEBUG_REFCOUNT
  22. #endif // _DEBUG
  23. /////////////////////////////////////////////////////////////////////////////
  24. // globals
  25. extern GUID CLSID_PSub;
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CVssWriter
  28. class CVssPSubWriter :
  29. public CComCoClass<CVssPSubWriter, &CLSID_PSub>,
  30. public CVssWriter
  31. {
  32. // Constructors and destructors
  33. public:
  34. CVssPSubWriter();
  35. // ATL stuff
  36. public:
  37. DECLARE_REGISTRY_RESOURCEID(IDR_VSS_PSUB)
  38. // Ovverides
  39. public:
  40. virtual bool STDMETHODCALLTYPE OnPrepareSnapshot();
  41. virtual bool STDMETHODCALLTYPE OnFreeze();
  42. virtual bool STDMETHODCALLTYPE OnThaw();
  43. virtual bool STDMETHODCALLTYPE OnAbort();
  44. };
  45. #endif //__VSS_PSUB_WRITER_H_