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.

40 lines
1.1 KiB

  1. #pragma once
  2. #include "nmbase.h"
  3. #include "nmres.h"
  4. class ATL_NO_VTABLE CLanConnectionManager :
  5. public CComObjectRootEx <CComMultiThreadModel>,
  6. public CComCoClass <CLanConnectionManager,
  7. &CLSID_LanConnectionManager>,
  8. public IConnectionPointContainerImpl <CLanConnectionManager>,
  9. public INetConnectionManager
  10. {
  11. public:
  12. CLanConnectionManager() throw()
  13. {
  14. }
  15. VOID FinalRelease()
  16. {
  17. TraceTag(ttidLanCon, "Destroying LAN Connection Manager");
  18. }
  19. DECLARE_CLASSFACTORY_SINGLETON(CLanConnectionManager)
  20. DECLARE_REGISTRY_RESOURCEID(IDR_LAN_CONMAN)
  21. BEGIN_COM_MAP(CLanConnectionManager)
  22. COM_INTERFACE_ENTRY(INetConnectionManager)
  23. COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
  24. END_COM_MAP()
  25. BEGIN_CONNECTION_POINT_MAP(CLanConnectionManager)
  26. END_CONNECTION_POINT_MAP()
  27. // INetConnectionManager
  28. STDMETHOD (EnumConnections) (
  29. IN NETCONMGR_ENUM_FLAGS Flags,
  30. OUT IEnumNetConnection** ppEnum);
  31. public:
  32. };