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.

81 lines
2.1 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() throw() {};
  30. ~CConnectionNotifySink() throw() ;
  31. // INetConnectionNotifySink
  32. STDMETHOD(ConnectionAdded) (
  33. IN const NETCON_PROPERTIES_EX* pPropsEx);
  34. STDMETHOD(ConnectionBandWidthChange) (
  35. IN const GUID* pguidId);
  36. STDMETHOD(ConnectionDeleted) (
  37. IN const GUID* pguidId);
  38. STDMETHOD(ConnectionModified) (
  39. IN const NETCON_PROPERTIES_EX* pPropsEx);
  40. STDMETHOD(ConnectionRenamed) (
  41. IN const GUID* pguidId,
  42. IN PCWSTR pszwNewName);
  43. STDMETHOD(ConnectionStatusChange) (
  44. IN const GUID* pguidId,
  45. IN NETCON_STATUS Status);
  46. STDMETHOD(RefreshAll) ();
  47. STDMETHOD(ConnectionAddressChange) (
  48. IN 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. IN REFIID riid,
  59. OUT VOID** ppv);
  60. };
  61. // Helper functions for external modules
  62. //
  63. HRESULT HrGetNotifyConPoint(
  64. OUT IConnectionPoint ** ppConPoint);