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.

55 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: C O N M A N W . C P P
  7. //
  8. // Contents: Class manager for RAS connections.
  9. //
  10. // Notes:
  11. //
  12. // Author: shaunco 21 Sep 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "pch.h"
  16. #pragma hdrstop
  17. #include "conmanw.h"
  18. #include "enumw.h"
  19. #include "ncbase.h"
  20. #include <ras.h>
  21. //+---------------------------------------------------------------------------
  22. // INetConnectionManager
  23. //
  24. //+---------------------------------------------------------------------------
  25. //
  26. // Member: CWanConnectionManager::EnumConnections
  27. //
  28. // Purpose: Return an INetConnection enumerator.
  29. //
  30. // Arguments:
  31. // Flags [in]
  32. // ppEnum [out] The enumerator.
  33. //
  34. // Returns: S_OK or an error code.
  35. //
  36. // Author: shaunco 21 Sep 1997
  37. //
  38. // Notes:
  39. //
  40. STDMETHODIMP
  41. CWanConnectionManager::EnumConnections (
  42. NETCONMGR_ENUM_FLAGS Flags,
  43. IEnumNetConnection** ppEnum)
  44. {
  45. HRESULT hr = CWanConnectionManagerEnumConnection::CreateInstance (
  46. Flags,
  47. IID_IEnumNetConnection,
  48. reinterpret_cast<void**>(ppEnum));
  49. TraceError ("CWanConnectionManager::EnumConnections", hr);
  50. return hr;
  51. }