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.

92 lines
2.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Module Name:
  4. // IISClusCfg.h
  5. //
  6. // Implementation Files:
  7. // IISClusCfg.cpp
  8. //
  9. // Description:
  10. // Header file for the IClusCfgStarutpListener sample program.
  11. //
  12. // Maintained By:
  13. // Galen Barbee (GalenB) 24-SEP-2001
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #pragma once
  17. //////////////////////////////////////////////////////////////////////////////
  18. // Include Files
  19. //////////////////////////////////////////////////////////////////////////////
  20. //
  21. // Our Class Id GUID declaration(s)
  22. //
  23. #include "IISClusCfgGuids.h"
  24. //////////////////////////////////////////////////////////////////////////////
  25. //++
  26. //
  27. // class CIISClusCfg
  28. //
  29. // Description:
  30. // The CIISClusCfg class is the implementation of the
  31. // IClusCfgStartupListener interface.
  32. //
  33. //--
  34. //////////////////////////////////////////////////////////////////////////////
  35. class CIISClusCfg
  36. : public IClusCfgStartupListener,
  37. public IClusCfgEvictListener
  38. {
  39. private:
  40. // IUnknown
  41. LONG m_cRef;
  42. // Private constructors and destructors
  43. CIISClusCfg( void );
  44. ~CIISClusCfg( void );
  45. // Private copy constructor to prevent copying.
  46. CIISClusCfg( const CIISClusCfg & rSrcIn );
  47. // Private assignment operator to prevent copying.
  48. const CIISClusCfg & operator = ( const CIISClusCfg & rSrcIn );
  49. HRESULT HrInit( void );
  50. HRESULT HrCleanupResourceTypes( void );
  51. public:
  52. //
  53. // Public, non interface methods.
  54. //
  55. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  56. static HRESULT S_HrRegisterCatIDSupport( ICatRegister * picrIn, BOOL fCreateIn );
  57. //
  58. // IUnknown
  59. //
  60. STDMETHOD( QueryInterface )( REFIID riidIn, void ** ppvOut );
  61. STDMETHOD_( ULONG, AddRef )( void );
  62. STDMETHOD_( ULONG, Release )( void );
  63. //
  64. // IClusCfgStartupListener
  65. //
  66. STDMETHOD( Notify ) ( IUnknown * punkIn );
  67. //
  68. // IClusCfgEvictListener
  69. //
  70. STDMETHOD( EvictNotify )( LPCWSTR pcszNodeNameIn );
  71. }; //*** class CIISClusCfg