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.

51 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: C O N M A N W . H
  7. //
  8. // Contents: Class manager for RAS connections.
  9. //
  10. // Notes:
  11. //
  12. // Author: shaunco 21 Sep 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "nmbase.h"
  17. #include "nmres.h"
  18. class ATL_NO_VTABLE CWanConnectionManager :
  19. public CComObjectRootEx <CComMultiThreadModel>,
  20. public CComCoClass <CWanConnectionManager,
  21. &CLSID_WanConnectionManager>,
  22. public IConnectionPointContainerImpl <CWanConnectionManager>,
  23. public INetConnectionManager
  24. {
  25. public:
  26. CWanConnectionManager() throw()
  27. {
  28. }
  29. DECLARE_CLASSFACTORY_SINGLETON(CWanConnectionManager)
  30. DECLARE_REGISTRY_RESOURCEID(IDR_WAN_CONMAN)
  31. BEGIN_COM_MAP(CWanConnectionManager)
  32. COM_INTERFACE_ENTRY(INetConnectionManager)
  33. COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
  34. END_COM_MAP()
  35. BEGIN_CONNECTION_POINT_MAP(CWanConnectionManager)
  36. END_CONNECTION_POINT_MAP()
  37. // INetConnectionManager
  38. STDMETHOD (EnumConnections) (
  39. IN NETCONMGR_ENUM_FLAGS Flags,
  40. OUT IEnumNetConnection** ppEnum);
  41. public:
  42. };