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.

86 lines
2.0 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. #include <nt.h>
  16. #include <ntrtl.h>
  17. #include <nturtl.h>
  18. #pragma once
  19. #include <atlbase.h>
  20. extern CComModule _Module;
  21. #include <atlcom.h>
  22. #include "netconp.h"
  23. class ATL_NO_VTABLE CConnectionNotifySink :
  24. public CComObjectRootEx <CComMultiThreadModel>,
  25. public INetConnectionNotifySink
  26. {
  27. private:
  28. // LPITEMIDLIST m_pidlFolder;
  29. public:
  30. BEGIN_COM_MAP(CConnectionNotifySink)
  31. COM_INTERFACE_ENTRY(INetConnectionNotifySink)
  32. END_COM_MAP()
  33. CConnectionNotifySink() { /*m_pidlFolder = NULL;*/ };
  34. ~CConnectionNotifySink();
  35. // INetConnectionNotifySink
  36. STDMETHOD(ConnectionAdded) (
  37. const NETCON_PROPERTIES_EX* pPropsEx);
  38. STDMETHOD(ConnectionBandWidthChange) (
  39. const GUID* pguidId);
  40. STDMETHOD(ConnectionDeleted) (
  41. const GUID* pguidId);
  42. STDMETHOD(ConnectionModified) (
  43. const NETCON_PROPERTIES_EX* pPropsEx);
  44. STDMETHOD(ConnectionRenamed) (
  45. const GUID* pguidId,
  46. LPCWSTR pszwNewName);
  47. STDMETHOD(ConnectionStatusChange) (
  48. const GUID* pguidId,
  49. NETCON_STATUS Status);
  50. STDMETHOD(RefreshAll) ();
  51. STDMETHOD(ConnectionAddressChange) (
  52. const GUID* pguidId );
  53. STDMETHOD(ShowBalloon) (
  54. IN const GUID* pguidId,
  55. IN const BSTR szCookie,
  56. IN const BSTR szBalloonText);
  57. STDMETHOD(DisableEvents) (
  58. IN const BOOL fDisable,
  59. IN const ULONG ulDisableTimeout);
  60. public:
  61. static HRESULT CreateInstance (
  62. REFIID riid,
  63. VOID** ppv);
  64. };
  65. // Helper functions for external modules
  66. //
  67. HRESULT HrGetNotifyConPoint(
  68. IConnectionPoint ** ppConPoint);