#pragma once #include "nmbase.h" #include "nmres.h" class ATL_NO_VTABLE CLanConnectionManager : public CComObjectRootEx , public CComCoClass , public IConnectionPointContainerImpl , public INetConnectionManager { public: CLanConnectionManager() { } DECLARE_CLASSFACTORY_SINGLETON(CLanConnectionManager) DECLARE_REGISTRY_RESOURCEID(IDR_LAN_CONMAN) BEGIN_COM_MAP(CLanConnectionManager) COM_INTERFACE_ENTRY(INetConnectionManager) COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer) END_COM_MAP() BEGIN_CONNECTION_POINT_MAP(CLanConnectionManager) END_CONNECTION_POINT_MAP() // INetConnectionManager STDMETHOD (EnumConnections) ( NETCONMGR_ENUM_FLAGS Flags, IEnumNetConnection** ppEnum); public: };