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.

88 lines
1.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997 - 2000
  5. //
  6. // File: N M H N E T. H
  7. //
  8. // Contents: Globals and routines used of hnetworking support
  9. //
  10. // Notes:
  11. //
  12. // Author: jonburs 15 August 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "nmres.h"
  17. #include "netconp.h"
  18. #include "hnetcfg.h"
  19. //
  20. // Cached IHNetCfgMgr pointer. This pointer is obtained the
  21. // first time someone calls HrGetHNetCfgMgr, and is released
  22. // when CleanupHNetSupport is called.
  23. //
  24. extern IHNetCfgMgr *g_pHNetCfgMgr;
  25. //
  26. // This value is incremented every time INetConnectionHNetUtil::NotifyUpdate()
  27. // is called, and is used by connection objects to make sure that their
  28. // cached homenet properties (sharing, bridging, firewall, etc.) are
  29. // up to date. Rollover does not matter. This value is set to 0 when
  30. // InitializeHNetSupport is called.
  31. //
  32. extern LONG g_lHNetModifiedEra;
  33. VOID
  34. InitializeHNetSupport(
  35. VOID
  36. );
  37. VOID
  38. CleanupHNetSupport(
  39. VOID
  40. );
  41. HRESULT
  42. HrGetHNetCfgMgr(
  43. IHNetCfgMgr **ppHNetCfgMgr
  44. );
  45. class ATL_NO_VTABLE CNetConnectionHNetUtil :
  46. public CComObjectRootEx <CComMultiThreadModelNoCS>,
  47. public CComCoClass <CNetConnectionHNetUtil, &CLSID_NetConnectionHNetUtil>,
  48. public INetConnectionHNetUtil
  49. {
  50. public:
  51. BEGIN_COM_MAP(CNetConnectionHNetUtil)
  52. COM_INTERFACE_ENTRY(INetConnectionHNetUtil)
  53. END_COM_MAP()
  54. DECLARE_PROTECT_FINAL_CONSTRUCT()
  55. DECLARE_REGISTRY_RESOURCEID(IDR_HN_CONNECTION_UTIL)
  56. CNetConnectionHNetUtil()
  57. {
  58. }
  59. ~CNetConnectionHNetUtil()
  60. {
  61. }
  62. //
  63. // INetConnectionHNetUtil
  64. //
  65. STDMETHODIMP
  66. NotifyUpdate(
  67. VOID
  68. );
  69. };