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.

49 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: C O N M A N . C P P
  7. //
  8. // Contents: Implementation of LAN connection class manager
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 2 Oct 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "pch.h"
  16. #pragma hdrstop
  17. #include "conmanl.h"
  18. #include "enuml.h"
  19. //+---------------------------------------------------------------------------
  20. // INetConnectionManager
  21. //
  22. //+---------------------------------------------------------------------------
  23. //
  24. // Member: CLanConnectionManager::EnumConnections
  25. //
  26. // Purpose: Returns an enumerator object for LAN connections
  27. //
  28. // Arguments:
  29. // Flags [in] Must be NCF_ALL_USERS
  30. // ppEnum [out] Returns enumerator object
  31. //
  32. // Returns: S_OK if succeeded, OLE or Win32 error code otherwise
  33. //
  34. // Author: danielwe 2 Oct 1997
  35. //
  36. // Notes:
  37. //
  38. STDMETHODIMP CLanConnectionManager::EnumConnections(NETCONMGR_ENUM_FLAGS Flags,
  39. IEnumNetConnection** ppEnum)
  40. {
  41. HRESULT hr = CLanConnectionManagerEnumConnection::CreateInstance(Flags,
  42. IID_IEnumNetConnection,
  43. reinterpret_cast<LPVOID*>(ppEnum));
  44. return hr;
  45. }