Source code of Windows XP (NT5)
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.

71 lines
1.8 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CPIClusCfgCallback.h
  7. //
  8. // Description:
  9. // INotifyUI Connection Point implementation.
  10. //
  11. // Maintained By:
  12. // Galen Barbee (GalenB) 10-NOV-2000
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. class CEnumCPICCCB;
  17. // CCPIClusCfgCallback
  18. class
  19. CCPIClusCfgCallback:
  20. public IConnectionPoint,
  21. public IClusCfgCallback
  22. {
  23. private:
  24. // IUnknown
  25. LONG m_cRef; // Reference count
  26. // IConnectionPoint
  27. CEnumCPICCCB * m_penum; // Connection enumerator
  28. // INotifyUI
  29. private: // Methods
  30. CCPIClusCfgCallback( );
  31. ~CCPIClusCfgCallback();
  32. STDMETHOD(Init)( );
  33. public: // Methods
  34. static HRESULT
  35. S_HrCreateInstance( IUnknown ** ppunkOut );
  36. // IUnknown
  37. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  38. STDMETHOD_( ULONG, AddRef )(void);
  39. STDMETHOD_( ULONG, Release )(void);
  40. // IConnectionPoint
  41. STDMETHOD( GetConnectionInterface )( IID * pIIDOut );
  42. STDMETHOD( GetConnectionPointContainer )( IConnectionPointContainer * * ppcpcOut );
  43. STDMETHOD( Advise )( IUnknown * pUnkSinkIn, DWORD * pdwCookieOut );
  44. STDMETHOD( Unadvise )( DWORD dwCookieIn );
  45. STDMETHOD( EnumConnections )( IEnumConnections * * ppEnumOut );
  46. // IClusCfgCallback
  47. STDMETHOD( SendStatusReport )(
  48. LPCWSTR pcszNodeNameIn
  49. , CLSID clsidTaskMajorIn
  50. , CLSID clsidTaskMinorIn
  51. , ULONG ulMinIn
  52. , ULONG ulMaxIn
  53. , ULONG ulCurrentIn
  54. , HRESULT hrStatusIn
  55. , LPCWSTR pcszDescriptionIn
  56. , FILETIME * pftTimeIn
  57. , LPCWSTR pcszReferenceIn
  58. );
  59. }; // class CCPIClusCfgCallback