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.

67 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997 - 2000
  5. //
  6. // File: H N B R G C O N . H
  7. //
  8. // Contents: CHNBridgedConn declarations
  9. //
  10. // Notes:
  11. //
  12. // Author: jonburs 23 June 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. class ATL_NO_VTABLE CHNBridgedConn :
  17. public CHNetConn,
  18. public IHNetBridgedConnection
  19. {
  20. private:
  21. HRESULT
  22. CHNBridgedConn::UnbindFromBridge(
  23. IN OPTIONAL INetCfg *pnetcfgExisting
  24. );
  25. HRESULT
  26. CopyBridgeBindings(
  27. IN INetCfgComponent *pnetcfgAdapter,
  28. IN INetCfgComponent *pnetcfgBridge
  29. );
  30. public:
  31. BEGIN_COM_MAP(CHNBridgedConn)
  32. COM_INTERFACE_ENTRY(IHNetBridgedConnection)
  33. COM_INTERFACE_ENTRY_CHAIN(CHNetConn)
  34. END_COM_MAP()
  35. //
  36. // Ojbect initialization
  37. //
  38. HRESULT
  39. Initialize(
  40. IWbemServices *piwsNamespace,
  41. IWbemClassObject *pwcoConnection
  42. );
  43. //
  44. // IHNetBridgedConnection methods
  45. //
  46. STDMETHODIMP
  47. GetBridge(
  48. IHNetBridge **ppBridge
  49. );
  50. STDMETHODIMP
  51. RemoveFromBridge(
  52. IN OPTIONAL INetCfg *pnetcfgExisting
  53. );
  54. };
  55. typedef CHNCArrayEnum<IEnumHNetBridgedConnections, IHNetBridgedConnection> CEnumHNetBridgedConnections;