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.

93 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Abstract:
  4. @doc
  5. @module Diff.hxx | Declarations used by the Software Snapshot interface
  6. @end
  7. Author:
  8. Adi Oltean [aoltean] 01/24/2000
  9. Revision History:
  10. Name Date Comments
  11. aoltean 01/24/2000 Created.
  12. --*/
  13. #ifndef __VSSW_DIFF_HXX__
  14. #define __VSSW_DIFF_HXX__
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif
  18. ////////////////////////////////////////////////////////////////////////
  19. // Standard foo for file name aliasing. This code block must be after
  20. // all includes of VSS header files.
  21. //
  22. #ifdef VSS_FILE_ALIAS
  23. #undef VSS_FILE_ALIAS
  24. #endif
  25. #define VSS_FILE_ALIAS "SPRDIFFH"
  26. //
  27. ////////////////////////////////////////////////////////////////////////
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Classes
  30. //
  31. // @class CVsDiffArea | IVsDiffArea implementation
  32. //
  33. // @index method | CVsDiffArea
  34. // @doc CVsDiffArea
  35. //
  36. class CVssDiffAreaAllocator;
  37. class ATL_NO_VTABLE CVsDiffArea
  38. {
  39. // Constructors/ destructors
  40. public:
  41. CVsDiffArea();
  42. ~CVsDiffArea();
  43. // Operations
  44. public:
  45. HRESULT Initialize(
  46. IN LPCWSTR pwszVolumeMountPoint // DO NOT transfer ownership
  47. );
  48. // Ovverides
  49. public:
  50. //
  51. // interface IVsDiffArea
  52. //
  53. STDMETHOD(AddVolume)(
  54. IN VSS_PWSZ pwszVolumeMountPoint
  55. );
  56. STDMETHOD(Query)(
  57. IN OUT CVssDiffAreaAllocator* pObj
  58. );
  59. STDMETHOD(Clear)(
  60. );
  61. // Data members
  62. protected:
  63. CVssIOCTLChannel m_volumeIChannel;
  64. // Critical section or avoiding race between tasks
  65. CVssCriticalSection m_cs;
  66. };
  67. #endif // __VSSW_DIFF_HXX__