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.

81 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: N O T I F Y . H
  7. //
  8. // Contents: Implementation of INetConnectionNotifySink
  9. //
  10. // Notes:
  11. //
  12. // Author: shaunco 21 Aug 1998
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "nsbase.h"
  17. #include "netconp.h"
  18. class ATL_NO_VTABLE CConnectionNotifySink :
  19. public CComObjectRootEx <CComObjectThreadModel>,
  20. public INetConnectionNotifySink
  21. {
  22. private:
  23. PCONFOLDPIDLFOLDER m_pidlFolder;
  24. HRESULT HrUpdateIncomingConnection();
  25. public:
  26. BEGIN_COM_MAP(CConnectionNotifySink)
  27. COM_INTERFACE_ENTRY(INetConnectionNotifySink)
  28. END_COM_MAP()
  29. CConnectionNotifySink() {};
  30. ~CConnectionNotifySink();
  31. // INetConnectionNotifySink
  32. STDMETHOD(ConnectionAdded) (
  33. const NETCON_PROPERTIES_EX* pPropsEx);
  34. STDMETHOD(ConnectionBandWidthChange) (
  35. const GUID* pguidId);
  36. STDMETHOD(ConnectionDeleted) (
  37. const GUID* pguidId);
  38. STDMETHOD(ConnectionModified) (
  39. const NETCON_PROPERTIES_EX* pPropsEx);
  40. STDMETHOD(ConnectionRenamed) (
  41. const GUID* pguidId,
  42. PCWSTR pszwNewName);
  43. STDMETHOD(ConnectionStatusChange) (
  44. const GUID* pguidId,
  45. NETCON_STATUS Status);
  46. STDMETHOD(RefreshAll) ();
  47. STDMETHOD(ConnectionAddressChange) (
  48. const GUID* pguidId );
  49. STDMETHOD(ShowBalloon) (
  50. IN const GUID* pguidId,
  51. IN const BSTR szCookie,
  52. IN const BSTR szBalloonText);
  53. STDMETHOD(DisableEvents) (
  54. IN const BOOL fDisable,
  55. IN const ULONG ulDisableTimeout);
  56. public:
  57. static HRESULT CreateInstance (
  58. REFIID riid,
  59. VOID** ppv);
  60. };
  61. // Helper functions for external modules
  62. //
  63. HRESULT HrGetNotifyConPoint(
  64. IConnectionPoint ** ppConPoint);