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.

58 lines
1.6 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2002 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CPINotifyUI.h
  7. //
  8. // Description:
  9. // INotifyUI Connection Point implementation.
  10. //
  11. // Maintained By:
  12. // David Potter (DavidP) 19-JUN-2001
  13. // Geoffrey Pease (GPease) 04-AUG-2000
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #pragma once
  17. class CEnumCPINotifyUI;
  18. // CCPINotifyUI
  19. class CCPINotifyUI
  20. : public IConnectionPoint
  21. , public INotifyUI
  22. {
  23. private:
  24. // IUnknown
  25. LONG m_cRef; // Reference count
  26. // IConnectionPoint
  27. CEnumCPINotifyUI * m_penum; // Connection enumerator
  28. // INotifyUI
  29. private: // Methods
  30. CCPINotifyUI( void );
  31. ~CCPINotifyUI( void );
  32. STDMETHOD( HrInit )( void );
  33. public: // Methods
  34. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  35. // IUnknown
  36. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  37. STDMETHOD_( ULONG, AddRef )(void);
  38. STDMETHOD_( ULONG, Release )(void);
  39. // IConnectionPoint
  40. STDMETHOD( GetConnectionInterface )( IID * pIIDOut );
  41. STDMETHOD( GetConnectionPointContainer )( IConnectionPointContainer ** ppcpcOut );
  42. STDMETHOD( Advise )( IUnknown * pUnkSinkIn, DWORD * pdwCookieOut );
  43. STDMETHOD( Unadvise )( DWORD dwCookieIn );
  44. STDMETHOD( EnumConnections )( IEnumConnections ** ppEnumOut );
  45. // INotifyUI
  46. STDMETHOD( ObjectChanged )( OBJECTCOOKIE cookieIn );
  47. }; //*** class CCPINotifyUI