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.

64 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997 - 2000
  5. //
  6. // File: H N B R I D G E . H
  7. //
  8. // Contents: CHNBridge declarations
  9. //
  10. // Notes:
  11. //
  12. // Author: jonburs 23 June 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. class ATL_NO_VTABLE CHNBridge :
  17. public CHNetConn,
  18. public IHNetBridge
  19. {
  20. private:
  21. HRESULT
  22. BindNewAdapter(
  23. IN GUID *pguid,
  24. IN OPTIONAL INetCfg *pnetcfgExisting
  25. );
  26. HRESULT
  27. RemoveMiniport(
  28. IN OPTIONAL INetCfg *pnetcfgExisting
  29. );
  30. public:
  31. BEGIN_COM_MAP(CHNBridge)
  32. COM_INTERFACE_ENTRY(IHNetBridge)
  33. COM_INTERFACE_ENTRY_CHAIN(CHNetConn)
  34. END_COM_MAP()
  35. //
  36. // IHNetBridge Methods
  37. //
  38. STDMETHODIMP
  39. EnumMembers(
  40. IEnumHNetBridgedConnections **ppEnum
  41. );
  42. STDMETHODIMP
  43. AddMember(
  44. IHNetConnection *pConn,
  45. IHNetBridgedConnection **ppBridgedConn,
  46. INetCfg *pnetcfgExisting
  47. );
  48. STDMETHODIMP
  49. Destroy(
  50. INetCfg *pnetcfgExisting
  51. );
  52. };
  53. typedef CHNCArrayEnum<IEnumHNetBridges, IHNetBridge> CEnumHNetBridges;