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.

45 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: C O N M A N 2 . H
  7. //
  8. // Contents: Connection manager 2.
  9. //
  10. // Notes:
  11. //
  12. // Author: ckotze 16 Mar 2001
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "nmbase.h"
  17. #include "nmres.h"
  18. #include "ncstl.h"
  19. #include "list"
  20. typedef list<NETCON_PROPERTIES_EX*> LISTNETCONPROPEX;
  21. typedef LISTNETCONPROPEX::iterator ITERNETCONPROPEX;
  22. class ATL_NO_VTABLE CConnectionManager2 :
  23. public CComObjectRootEx <CComMultiThreadModel>,
  24. public CComCoClass <CConnectionManager2, &CLSID_ConnectionManager2>,
  25. public INetConnectionManager2
  26. {
  27. public:
  28. CConnectionManager2() throw() {};
  29. ~CConnectionManager2() throw() {};
  30. DECLARE_CLASSFACTORY_DEFERRED_SINGLETON(CConnectionManager2)
  31. DECLARE_REGISTRY_RESOURCEID(IDR_CONMAN2);
  32. BEGIN_COM_MAP(CConnectionManager2)
  33. COM_INTERFACE_ENTRY(INetConnectionManager2)
  34. END_COM_MAP()
  35. // INetConnectionManager2
  36. STDMETHOD (EnumConnectionProperties)(
  37. OUT SAFEARRAY** ppsaConnectionProperties);
  38. };